SQF And some other uncommited changed added
This commit is contained in:
3
SQF (arma)/3D%20Pythagorus.Altis/description.ext
Normal file
3
SQF (arma)/3D%20Pythagorus.Altis/description.ext
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
class cfgFunctions {
|
||||||
|
#include "functions.hpp"
|
||||||
|
};
|
||||||
7
SQF (arma)/3D%20Pythagorus.Altis/functions.hpp
Normal file
7
SQF (arma)/3D%20Pythagorus.Altis/functions.hpp
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
class RR {
|
||||||
|
tag = "RR";
|
||||||
|
class functions {
|
||||||
|
file = "functions";
|
||||||
|
class distance {};
|
||||||
|
};
|
||||||
|
};
|
||||||
21
SQF (arma)/3D%20Pythagorus.Altis/functions/fn_distance.sqf
Normal file
21
SQF (arma)/3D%20Pythagorus.Altis/functions/fn_distance.sqf
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
/**
|
||||||
|
* Function to calculate distance between 2 sets of coordinates
|
||||||
|
*
|
||||||
|
* Expects the first two args to be an array of coordinates (x, y, z)
|
||||||
|
* The third arg is expected to be a flag for 3D calculation
|
||||||
|
* If no flag is provided it is assumed 2D.
|
||||||
|
*
|
||||||
|
* @param {array} point a
|
||||||
|
* @param {array} point b
|
||||||
|
* @param [bool=false]
|
||||||
|
*/
|
||||||
|
|
||||||
|
params [
|
||||||
|
["_a", [0, 0, 0]],
|
||||||
|
["_b", [0, 0, 0]],
|
||||||
|
["_3D", false, [false]]
|
||||||
|
];
|
||||||
|
|
||||||
|
hint "Called!";
|
||||||
|
|
||||||
|
_x = 10;
|
||||||
4
SQF (arma)/3D%20Pythagorus.Altis/init.sqf
Normal file
4
SQF (arma)/3D%20Pythagorus.Altis/init.sqf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
private _lol = [] call RR_fnc_distance;
|
||||||
|
|
||||||
|
hint _lol;
|
||||||
BIN
SQF (arma)/3D%20Pythagorus.Altis/mission.sqm
Normal file
BIN
SQF (arma)/3D%20Pythagorus.Altis/mission.sqm
Normal file
Binary file not shown.
1
SQF (arma)/Car%20Workshop.Altis/.adc/custom_controls.xml
Normal file
1
SQF (arma)/Car%20Workshop.Altis/.adc/custom_controls.xml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?><custom-classes><custom-controls/></custom-classes>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?><external-resources><external-resources/></external-resources>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?><external-resources><external-resources/></external-resources>
|
||||||
6
SQF (arma)/Car%20Workshop.Altis/change_colour.sqf
Normal file
6
SQF (arma)/Car%20Workshop.Altis/change_colour.sqf
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
private _r = (sliderPosition 100) / 50;
|
||||||
|
private _g = (sliderPosition 101) / 50;
|
||||||
|
private _b = (sliderPosition 102) / 50;
|
||||||
|
|
||||||
|
// This is soooo broken, the colours flash n shit
|
||||||
|
Car setObjectTextureGlobal [ 0, format [ "#(rgb,8,8,3)color(%1,%2,%3,1)", _r, _g, _b ] ]
|
||||||
137
SQF (arma)/Car%20Workshop.Altis/description.ext
Normal file
137
SQF (arma)/Car%20Workshop.Altis/description.ext
Normal file
@@ -0,0 +1,137 @@
|
|||||||
|
class RscTitles;
|
||||||
|
class MyDialog
|
||||||
|
{
|
||||||
|
idd = 2;
|
||||||
|
|
||||||
|
class ControlsBackground
|
||||||
|
{
|
||||||
|
class Back
|
||||||
|
{
|
||||||
|
type = 0;
|
||||||
|
idc = -1;
|
||||||
|
x = safeZoneX + safeZoneW * 0.29375;
|
||||||
|
y = safeZoneY + safeZoneH * 0.3712963;
|
||||||
|
w = safeZoneW * 0.12395834;
|
||||||
|
h = safeZoneH * 0.32685186;
|
||||||
|
style = 0;
|
||||||
|
text = "";
|
||||||
|
colorBackground[] = {0,0,0,0.7};
|
||||||
|
colorText[] = {1,1,1,1};
|
||||||
|
font = "PuristaMedium";
|
||||||
|
sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
|
||||||
|
shadow = 0;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
class Controls
|
||||||
|
{
|
||||||
|
|
||||||
|
class SliderR
|
||||||
|
{
|
||||||
|
type = 43;
|
||||||
|
idc = 100;
|
||||||
|
x = safeZoneX + safeZoneW * 0.308125;
|
||||||
|
y = safeZoneY + safeZoneH * 0.60777778;
|
||||||
|
w = safeZoneW * 0.099375;
|
||||||
|
h = safeZoneH * 0.01555556;
|
||||||
|
style = 1024;
|
||||||
|
arrowEmpty = "\A3\ui_f\data\GUI\Cfg\Slider\arrowEmpty_ca.paa";
|
||||||
|
arrowFull = "\A3\ui_f\data\GUI\Cfg\Slider\arrowFull_ca.paa";
|
||||||
|
border = "\A3\ui_f\data\GUI\Cfg\Slider\border_ca.paa";
|
||||||
|
color[] = {0.6,0,0,1};
|
||||||
|
colorActive[] = {1,1,1,1};
|
||||||
|
thumb = "\A3\ui_f\data\GUI\Cfg\Slider\thumb_ca.paa";
|
||||||
|
tooltipColorShade[] = {0.6,0,0,1};
|
||||||
|
|
||||||
|
onSliderPosChanged = "hint format [ '%1', _this ]; [] execVM 'change_colour.sqf'; uisleep 0.2;"
|
||||||
|
};
|
||||||
|
|
||||||
|
class SliderG
|
||||||
|
{
|
||||||
|
type = 43;
|
||||||
|
idc = 101;
|
||||||
|
x = safeZoneX + safeZoneW * 0.308125;
|
||||||
|
y = safeZoneY + safeZoneH * 0.63666667;
|
||||||
|
w = safeZoneW * 0.099375;
|
||||||
|
h = safeZoneH * 0.01555556;
|
||||||
|
style = 1024;
|
||||||
|
arrowEmpty = "\A3\ui_f\data\GUI\Cfg\Slider\arrowEmpty_ca.paa";
|
||||||
|
arrowFull = "\A3\ui_f\data\GUI\Cfg\Slider\arrowFull_ca.paa";
|
||||||
|
border = "\A3\ui_f\data\GUI\Cfg\Slider\border_ca.paa";
|
||||||
|
color[] = {0,0.2,0,1};
|
||||||
|
colorActive[] = {1,1,1,1};
|
||||||
|
thumb = "\A3\ui_f\data\GUI\Cfg\Slider\thumb_ca.paa";
|
||||||
|
|
||||||
|
onSliderPosChanged = "hint format [ '%1', _this ]; [] execVM 'change_colour.sqf'; uisleep 0.2;"
|
||||||
|
};
|
||||||
|
|
||||||
|
class SliderB
|
||||||
|
{
|
||||||
|
type = 43;
|
||||||
|
idc = 102;
|
||||||
|
x = safeZoneX + safeZoneW * 0.308125;
|
||||||
|
y = safeZoneY + safeZoneH * 0.66666667;
|
||||||
|
w = safeZoneW * 0.099375;
|
||||||
|
h = safeZoneH * 0.01444445;
|
||||||
|
style = 1024;
|
||||||
|
arrowEmpty = "\A3\ui_f\data\GUI\Cfg\Slider\arrowEmpty_ca.paa";
|
||||||
|
arrowFull = "\A3\ui_f\data\GUI\Cfg\Slider\arrowFull_ca.paa";
|
||||||
|
border = "\A3\ui_f\data\GUI\Cfg\Slider\border_ca.paa";
|
||||||
|
color[] = {0.102,0.2,0.6,1};
|
||||||
|
colorActive[] = {1,1,1,1};
|
||||||
|
thumb = "\A3\ui_f\data\GUI\Cfg\Slider\thumb_ca.paa";
|
||||||
|
|
||||||
|
onSliderPosChanged = "hint format [ '%1', _this ]; [] execVM 'change_colour.sqf'; uisleep 0.2;"
|
||||||
|
};
|
||||||
|
|
||||||
|
class Button1
|
||||||
|
{
|
||||||
|
type = 1;
|
||||||
|
idc = -1;
|
||||||
|
x = safeZoneX + safeZoneW * 0.29427084;
|
||||||
|
y = safeZoneY + safeZoneH * 0.70740741;
|
||||||
|
w = safeZoneW * 0.04635417;
|
||||||
|
h = safeZoneH * 0.01388889;
|
||||||
|
|
||||||
|
|
||||||
|
style = 0;
|
||||||
|
action = "closeDialog 2;";
|
||||||
|
text = "Exit";
|
||||||
|
borderSize = 0;
|
||||||
|
colorBackground[] = {0.302,0.502,0.302,1};
|
||||||
|
colorText[] = {1,1,1,1};
|
||||||
|
font = "PuristaMedium";
|
||||||
|
sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
|
||||||
|
soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1.0};
|
||||||
|
soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1.0};
|
||||||
|
soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1.0};
|
||||||
|
soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1.0};
|
||||||
|
};
|
||||||
|
|
||||||
|
class button2
|
||||||
|
{
|
||||||
|
type = 1;
|
||||||
|
idc = -1;
|
||||||
|
x = safeZoneX + safeZoneW * 0.37291667;
|
||||||
|
y = safeZoneY + safeZoneH * 0.70648149;
|
||||||
|
w = safeZoneW * 0.04635417;
|
||||||
|
h = safeZoneH * 0.01296297;
|
||||||
|
|
||||||
|
|
||||||
|
style = 0;
|
||||||
|
action = "hint 'Confirmed'; closeDialog 2;";
|
||||||
|
text = "Confirm";
|
||||||
|
colorBackground[] = {0.302,0.502,0.302,1};
|
||||||
|
colorText[] = {1,1,1,1};
|
||||||
|
font = "PuristaMedium";
|
||||||
|
sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
|
||||||
|
soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1.0};
|
||||||
|
soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1.0};
|
||||||
|
soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1.0};
|
||||||
|
soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1.0};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
0
SQF (arma)/Car%20Workshop.Altis/get_textures.sqf
Normal file
0
SQF (arma)/Car%20Workshop.Altis/get_textures.sqf
Normal file
BIN
SQF (arma)/Car%20Workshop.Altis/mission.sqm
Normal file
BIN
SQF (arma)/Car%20Workshop.Altis/mission.sqm
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
10
SQF (arma)/Car%20Workshop.Altis/workshop.sqf
Normal file
10
SQF (arma)/Car%20Workshop.Altis/workshop.sqf
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
hint "Okay, this is epic";
|
||||||
|
|
||||||
|
private _dialouge = createDialog "MyDialog";
|
||||||
|
|
||||||
|
private _carTextures; // Get available textures of car
|
||||||
|
|
||||||
|
waitUntil { !_dialouge };
|
||||||
|
hint "closed";
|
||||||
|
|
||||||
|
// Car setObjectTexture [ 0, "#(rgb,8,8,3)color(1,0,0,1)" ]
|
||||||
Reference in New Issue
Block a user