BetterDeadThanZed Posted July 8, 2014 Report Share Posted July 8, 2014 I was wondering how you determine the coordinates for placing something on the GUI. For example, I have a server menu on my server. Here's the coordinates that the server info, rules, etc shows up at: safezoneX+0.30,safezoneY+0.1,35,0.1,0,3034 That places it in a very unappealing area of my screen. How can I get the coordinates to move this display to a better location? Link to comment Share on other sites More sharing options...
0 Darihon Posted July 8, 2014 Report Share Posted July 8, 2014 https://community.bistudio.com/wiki/User_Interface_Editor_(Arma_2) . Give that a try, helped me out a lot too. Link to comment Share on other sites More sharing options...
0 fr1nk Posted July 8, 2014 Report Share Posted July 8, 2014 https://community.bistudio.com/wiki/User_Interface_Editor_(Arma_2) . Give that a try, helped me out a lot too. Oohh never knew about this..looks like it could be very handy :) Darihon 1 Link to comment Share on other sites More sharing options...
0 BetterDeadThanZed Posted July 8, 2014 Author Report Share Posted July 8, 2014 https://community.bistudio.com/wiki/User_Interface_Editor_(Arma_2) . Give that a try, helped me out a lot too. I don't understand this part of the instructions: Place Functions module and during game, execute following code: [] call BIS_fnc_GUIeditor Link to comment Share on other sites More sharing options...
0 Darihon Posted July 9, 2014 Report Share Posted July 9, 2014 Just use the preview mission: http://moricky.com/items/stra_gui_preview.rar Link to comment Share on other sites More sharing options...
0 Halvhjearne Posted July 9, 2014 Report Share Posted July 9, 2014 I don't understand this part of the instructions: Place Functions module and during game, execute following code: [] call BIS_fnc_GUIeditor go into singleplayer editor, place a functions module anywhere on the map. next you need a way to execute it ... i think it will be easiest done by adding that code into the activation part of a tigger or an addaction perhaps (tho that would require a script to execute the code). so place a trigger on the map and a unit next to it (obviusly make sure it activates by your unit) and you should be ready to go. Link to comment Share on other sites More sharing options...
0 BetterDeadThanZed Posted July 9, 2014 Author Report Share Posted July 9, 2014 go into singleplayer editor, place a functions module anywhere on the map. next you need a way to execute it ... i think it will be easiest done by adding that code into the activation part of a tigger or an addaction perhaps (tho that would require a script to execute the code). so place a trigger on the map and a unit next to it (obviusly make sure it activates by your unit) and you should be ready to go. I don't understand how this is going to help me find the coordinates on my screen so I can properly place the server menu information. This looks like instructions for placing units and getting their coordinates relative to an object. Link to comment Share on other sites More sharing options...
0 Halvhjearne Posted July 9, 2014 Report Share Posted July 9, 2014 I don't understand how this is going to help me find the coordinates on my screen so I can properly place the server menu information. This looks like instructions for placing units and getting their coordinates relative to an object. BIS_fnc_GUIeditor brings up dialogs that can help you find these positions, to use it you need functions module and a unit on the map else you cannot start the mission. you could potentially start this ingame on your epoch server aswell, since you do have functions module loaded (unless you have antihack breaking that function). Link to comment Share on other sites More sharing options...
0 Sukkaed Posted July 9, 2014 Report Share Posted July 9, 2014 I've been using this. disableSerialization; createDialog "RscFunctionsViewer"; _display = findDisplay 2929; _indexdis = 292905; _textTitle = _display displayctrl (_indexdis + 0); _textPath = _display displayctrl (_indexdis + 1); _textDesc = _display displayctrl (_indexdis + 2); _textCode = _display displayctrl (_indexdis + 3); _btnCopy = _display displayctrl (_indexdis + 4); _btnCopy2 = _display displayctrl (_indexdis + 5); _btnCopy3 = _display displayctrl (_indexdis + 6); _listFNCs = _display displayCtrl (_indexdis - 4); _listSRCs = _display displayCtrl (_indexdis - 3); _listTags = _display displayCtrl (_indexdis - 2); _listCats = _display displayCtrl (_indexdis - 1); _textTitle ctrlShow true;_textPath ctrlShow true;_textDesc ctrlShow true; _btnCopy ctrlShow true;_btnCopy2 ctrlShow true;_btnCopy3 ctrlShow true; _listFNCs ctrlShow false;_listSRCs ctrlShow false;_listTags ctrlShow false;_listCats ctrlShow false; _textCode ctrlSetTextColor [0.75,0,0,1]; _textCode ctrlSetFontHeight 0.0306; _textCode ctrlSetText ""; _textCode ctrlSetFont "EtelkaNarrowMediumPro"; _textCtrl = (ctrlPosition _textCode); _textCode ctrlSetPosition [(_textCtrl select 0) - 0.19, (_textCtrl select 1), (_textCtrl select 2), (_textCtrl select 3)]; _textCode ctrlCommit 0; _btnCopy ctrlSetText "Run"; _btnCopy ctrlSetTextColor [0,0,0,1]; _btnCopy ctrlSetFont "Zeppelin33"; _btnCopy buttonSetAction "_text = ctrlText 292908;call compile _text;"; _btnctrl = (ctrlPosition _btnCopy); _btnCopy ctrlSetPosition [(_btnctrl select 0) - 0.19, (_btnctrl select 1), (_btnctrl select 2), (_btnctrl select 3)]; _btnCopy ctrlCommit 0; _btnCopy2 ctrlSetText ""; _btnCopy2 ctrlSetTextColor [0,0,0,1]; _btnCopy2 ctrlSetFont "Zeppelin33"; _btnCopy2 buttonSetAction ""; _btn2ctrl = (ctrlPosition _btnCopy2); _btnCopy2 ctrlSetPosition [(_btn2ctrl select 0) - 0.19, (_btn2ctrl select 1), (_btn2ctrl select 2), (_btn2ctrl select 3)]; _btnCopy2 ctrlCommit 0; _btnCopy3 ctrlSetText "Close"; _btnCopy3 ctrlSetTextColor [0,0,0,1]; _btnCopy3 ctrlSetFont "Zeppelin33"; _btnCopy3 buttonSetAction "closeDialog 0;"; _btn3ctrl = (ctrlPosition _btnCopy3); _btnCopy3 ctrlSetPosition [(_btn3ctrl select 0) - 0.19, (_btn3ctrl select 1), (_btn3ctrl select 2), (_btn3ctrl select 3)]; _btnCopy3 ctrlCommit 0; You can copy/paste and run any code in that while in game. Really easy to find text locations etc. fr1nk 1 Link to comment Share on other sites More sharing options...
Question
BetterDeadThanZed
I was wondering how you determine the coordinates for placing something on the GUI.
For example, I have a server menu on my server. Here's the coordinates that the server info, rules, etc shows up at:
safezoneX+0.30,safezoneY+0.1,35,0.1,0,3034
That places it in a very unappealing area of my screen. How can I get the coordinates to move this display to a better location?
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now