Renamed SQF folder to prevent brackets in the URL

This commit is contained in:
Benjamin Kyd
2019-04-28 22:44:38 +01:00
parent 81bc15c100
commit 911879d542
15 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
class cfgFunctions {
#include "functions.hpp"
};

View File

@@ -0,0 +1,7 @@
class RR {
tag = "RR";
class functions {
file = "functions";
class distance {};
};
};

View 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;

View File

@@ -0,0 +1,4 @@
private _lol = [] call RR_fnc_distance;
hint _lol;

Binary file not shown.

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><custom-classes><custom-controls/></custom-classes>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><external-resources><external-resources/></external-resources>

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><external-resources><external-resources/></external-resources>

View 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 ] ]

View 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};
};
};
};

Binary file not shown.

File diff suppressed because one or more lines are too long

View 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)" ]

11
SQF/info.txt Normal file
View File

@@ -0,0 +1,11 @@
Default Scripts - built into arma https://community.bistudio.com/wiki/Category:Arma_3:_Functions
Scripting Commands - used in coding https://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_3
Required scripts for a server https://community.bistudio.com/wiki/Event_Scripts
Triggered Scripts - Event Handlers https://community.bistudio.com/wiki/Arma_3:_Event_Handlers
Triggered UI Scripts - DisplayEventHandlers https://community.bistudio.com/wiki/User_Interface_Event_Handlers
Server Boot Order https://community.bistudio.com/wiki/Initialization_Order
Default Arma Sounds https://community.bistudio.com/wiki/Arma_3:_SoundFiles
Default Altis Life Framework https://github.com/AsYetUntitled/Framework
<20:16:43> "Harry Lewis": so developing for a server like this, best to get used to the language and how it works by making some little scripts in the game
<20:17:20> "Harry Lewis": we use a LOT of functional programming, and configs e.t.c - so learn how the game handles execution of functions