Jump to content

sbondo1234

Member
  • Content Count

    56
  • Joined

  • Last visited

  • Medals

Community Reputation

5 Neutral

About sbondo1234

  • Rank
    Lance Corporal

Profile Information

  • Location
    Newville

Contact Methods

  • Steam url id
    idontknowplshelp

Recent Profile Visitors

242 profile views
  1. sbondo1234

    ListBox Help

    Sure will! I have kind of used switch/case statements before when making an earplugs script, so I kind of understand it but not much.
  2. sbondo1234

    ListBox Help

    Sorry for late reply, was gone doing something but thanks for all the help! Works great! Going to work on making it look nicer now!
  3. sbondo1234

    ListBox Help

    Sorry, where would I add this? I tried replacing it with _lb ctrlAddEventHandler and it gave some error.
  4. sbondo1234

    ListBox Help

    @HazJ Thanks for the mission download, I'm not sure what I did wrong but it seemed to fix whatever I did. I Understand this line is changing the structuredText to the name of the List Box Option selected? _text ctrlSetStructuredText parseText format ["%1", _control lbText _selectedIndex]; How would I make it so whenever you clicked on an option I could write in what they see instead of them seeing the name of the option they clicked?
  5. sbondo1234

    ListBox Help

    My files: //sg_dialogs.hpp class sg_list_1 { type = 5; idc = 5545; onLoad = [] spawn sg_fnc_openHelp; onLBDblClick = [] spawn sg_fnc_helpInfo; x = safeZoneX + safeZoneW * 0.343125; y = safeZoneY + safeZoneH * 0.37555556; w = safeZoneW * 0.10375; h = safeZoneH * 0.24; style = 16; colorBackground[] = {0.302,0.302,0.302,0.4683}; colorDisabled[] = {0.302,0.302,0.302,0.4841}; colorSelect[] = {1,1,1,1}; colorText[] = {1,1,1,0.381}; font = "PuristaMedium"; maxHistoryDelay = 0; rowHeight = 0; sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1); soundSelect[] = {"\A3\ui_f\data\sound\RscListbox\soundSelect",0.09,1.0}; class ListScrollBar { color[] = {1,1,1,1}; thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa"; arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa"; arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa"; border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa"; }; }; class sg_helpInfoText_1:RscStructuredText{ type = 0; idc = 5546; x = safeZoneX + safeZoneW * 0.4675; y = safeZoneY + safeZoneH * 0.38666667; w = safeZoneW * 0.126875; h = safeZoneH * 0.01; style = 0+2; text = "Default Text"; colorBackground[] = {0.9412,0.5843,0.8549,0}; colorText[] = {1,1,1,1}; font = "PuristaMedium"; sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 35) * 1); }; }; //initPlayerLocal.sqf call compile preprocessFile "scripts\sg_dialogs\sg_fnc_help.sqf"; //sg_fnc_help.sqf sg_fnc_openHelp = { disableSerialization; lbClear 5545; {lbAdd[5545,_x]} forEach ["Spawn A Vehicle","Gun On Back","Jumping","Earplugs"]; }; sg_fnc_helpInfo = { disableSerialization; private _display = findDisplay 2001; _text = _display displayCtrl 5546; _text ctrlSetStructuredText parseText "You have selected Spawn A Vehicle."; };
  6. sbondo1234

    ListBox Help

    @HazJ I am really confused then... If it works for you then what could I possibly be doing wrong? I copied your .hpp test code to see if that was the problem and it still didn't work. In fact, I stopped seeing 'Default Text'. I even tried putting my functions in init.sqf instead of its own file but that didn't work either.
  7. sbondo1234

    ListBox Help

    Tried this and it didn't work... What's wrong? Still no error. _text ctrlCommit 10;
  8. sbondo1234

    ListBox Help

    I could see it when I changed it to default: class sg_helpInfoText_1:RscStructuredText{ type = 0; idc = 5546; x = safeZoneX + safeZoneW * 0.4675; y = safeZoneY + safeZoneH * 0.38666667; w = safeZoneW * 0.126875; h = safeZoneH * 0.01; style = 0+2; text = "Default Text"; colorBackground[] = {0.9412,0.5843,0.8549,0}; colorText[] = {1,1,1,1}; font = "PuristaMedium"; sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 35) * 1); moving = false; }; http://prntscr.com/mtu9s1
  9. sbondo1234

    ListBox Help

    I copied the RscStructuredText from the drop box and put it in my defines.hpp, and it still didn't work even with disableSerialization on/off. I changed the text to 'Default' and it did show.
  10. sbondo1234

    ListBox Help

    Sorry, I have just tried it and I still have no idea what is going on. There isn't an error that pops up just nothing happens. Might help if I show you the stuff I have rn: //sg_dialogs.hpp class sg_helpInfoText_1:RscStructuredText{ type = 0; idc = 5546; x = safeZoneX + safeZoneW * 0.4675; y = safeZoneY + safeZoneH * 0.38666667; w = safeZoneW * 0.126875; h = safeZoneH * 0.01; style = 0+2; text = ""; colorBackground[] = {0.9412,0.5843,0.8549,0}; colorText[] = {1,1,1,1}; font = "PuristaMedium"; sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 35) * 1); moving = false; }; //sg_fnc_help.sqf sg_fnc_openHelp = { disableSerialization; lbClear 5545; {lbAdd[5545,_x]} forEach ["Spawn A Vehicle","Gun On Back","Jumping","Earplugs"]; }; sg_fnc_helpInfo = { private _display = findDisplay 2001; _text = _display displayCtrl 5546; // Replace <IDC> with actual number _text ctrlSetStructuredText parseText "You have selected Spawn A Vehicle."; }; Whenever I double click on the option in the list box, nothing happens.
  11. sbondo1234

    ListBox Help

    That works great, but I think I may have explained myself wrong. I wanted the text to appear in a different box, which I thought that this did. This screenshot might help show what I was trying to do: http://prntscr.com/mtto4b
  12. sbondo1234

    ListBox Help

    Error Undefined Variable in expression: _display. Not really sure what that means. Hopefully, larrow can help with this too.
  13. sbondo1234

    ListBox Help

    Should it be something like this: _selectedLb = lbCurSel 5545; _selectedLb lbSetTextRight [_forEachIndex, "You have selected Spawn A Vehicle.", "You have selected Gun On Back."];
  14. sbondo1234

    ListBox Help

    One question though. What would the index be?
  15. sbondo1234

    ListBox Help

    Didn't know this existed, but thanks. I will try it out now instead of all of these functions.
×