Jump to content
Sign in to follow this  
Chibi-Alien

Help with dialog using defualt RscListNBox

Recommended Posts

I'm hoping someone with some skills in creating dialogs can point me in the right direction. the class I created in my dialog.hpp is shown below. everything works just fine on it no issues what so ever. I used Iceman77's dialog tutorials to make simple dialogs and I'm decent at scripting so now I'm trying some more advacned things. Problem is when i use the default configuration for a LISTNBOX class in my dialogs, I can't get a background to show. If i use any of the other LISTBOX types the background shows up fine. If you check the image you can see what i mean. I saw this mentioned in another post a while back but there was no solution made there.

I included my the LISTNBOX class configuration from my defines.hpp below as well.

Image

LISTNBOX.jpg

Dialog.hpp

class CHIBI_TMSELECT

{

idd = 800;

movingenable = true;

class Controls

{

class CHIBI_BOX: BOX

{

idc = -1;

text = "";

colorBackground[] = { 0.0588,0.0588,0.0588, 0.8 };

x = 0.254998 * safezoneW + safezoneX;

y = 0.277698 * safezoneH + safezoneY;

w = 0.492937 * safezoneW;

h = 0.501577 * safezoneH;

};

class CHIBI_TMSELECT_FRAME: RscFrame

{

idc = 8800;

text = "Team Statistics & Selection";

x = 0.114403 * safezoneW + safezoneX;

y = 0.255046 * safezoneH + safezoneY;

w = 0.771194 * safezoneW;

h = 0.454915 * safezoneH;

};

class CHIBI_TMSELECT_GEARBTN: RscShortcutButton

{

idc = 8701;

text = "Gear";

x = 0.138508 * safezoneW + safezoneX;

y = 0.639974 * safezoneH + safezoneY;

w = 0.10783 * safezoneW;

h = 0.0819154 * safezoneH;

action = "[0,0,0,31]ExecVM ""dialogs\teammgr.sqf""";

};

class CHIBI_TMSELECT_ARMBTN: RscShortcutButton

{

idc = 8702;

text = "Rearm";

x = 0.242508 * safezoneW + safezoneX;

y = 0.639974 * safezoneH + safezoneY;

w = 0.10783 * safezoneW;

h = 0.0819154 * safezoneH;

action = "[0,0,0,32]ExecVM ""dialogs\teammgr.sqf""";

};

class CHIBI_TMSELECT_RALLYBTN: RscShortcutButton

{

idc = 8703;

text = "Rally Team";

x = 0.346508 * safezoneW + safezoneX;

y = 0.639974 * safezoneH + safezoneY;

w = 0.10783 * safezoneW;

h = 0.0819154 * safezoneH;

action = "[0,0,0,41]ExecVM ""dialogs\teammgr.sqf""";

};

class CHIBI_TMSELECT_RLSBTN: RscShortcutButton

{

idc = 8704;

text = "Dismiss";

x = 0.450508 * safezoneW + safezoneX;

y = 0.639974 * safezoneH + safezoneY;

w = 0.10783 * safezoneW;

h = 0.0819154 * safezoneH;

action = "[0,0,0,22]ExecVM ""dialogs\teammgr.sqf""";

};

class CHIBI_TMSELECT_JOINBTN: RscShortcutButton

{

idc = 8705;

text = "Join";

x = 0.554508 * safezoneW + safezoneX;

y = 0.639974 * safezoneH + safezoneY;

w = 0.10783 * safezoneW;

h = 0.0819154 * safezoneH;

action = "[0,0,0,21]ExecVM ""dialogs\teammgr.sqf""";

};

class CHIBI_TMSELECT_FTR1BTN: RscShortcutButton

{

idc = 8706;

text = "Future";

x = 0.658508 * safezoneW + safezoneX;

y = 0.639974 * safezoneH + safezoneY;

w = 0.10783 * safezoneW;

h = 0.0819154 * safezoneH;

};

class CHIBI_TMSELECT_FTR2BTN: RscShortcutButton

{

idc = 8706;

text = "Future";

x = 0.762508 * safezoneW + safezoneX;

y = 0.639974 * safezoneH + safezoneY;

w = 0.10783 * safezoneW;

h = 0.0819154 * safezoneH;

};

class CHIBI_TMSELECT_X: RscButton

{

idc = 8600;

text = "X";

x = 0.848465 * safezoneW + safezoneX;

y = 0.274445 * safezoneH + safezoneY;

w = 0.021612 * safezoneW;

h = 0.0320331 * safezoneH;

action = "closeDialog 0";

};

class CHIBI_TMSELECT_LIST: RscListNbox

{

idc = 8500;

x = 0.130811 * safezoneW + safezoneX;

y = 0.342529 * safezoneH + safezoneY;

w = 0.738377 * safezoneW;

h = 0.297445 * safezoneH;

tooltip = "Select a team member and select join/release to add/remove members of your squad.";

};

class CHIBI_TMSELECT_TITLE: RscStructuredText

{

idc = 8100;

x = 0.130811 * safezoneW + safezoneX;

y = 0.290039 * safezoneH + safezoneY;

w = 0.697356 * safezoneW;

h = 0.0349935 * safezoneH;

};

};

};

RscListNBox class from Defines.hpp

class RscListNBox

{

access = 0; // allow alterations / additions to, but not erasure of, tokennames in this class.

// this equally affects child classes. they cannot be removed, nor can their tokenNames be erased, only altered

// to completely remove or alter a child class (in this case scrollbar), this parent class must be inherited

// then again, perhaps irrelevant, perhaps it's simply being a root class that causes all this

type = 102;

style = ST_MULTI;

w = 0.4; h = 0.4;

font = "TahomaB";

sizeEx = 0.03;

colorText[] = {0.8784, 0.8471, 0.651, 1};

colorBackground[] = {0, 0, 0, 1};

autoScrollSpeed = -1;

autoScrollDelay = 5;

autoScrollRewind = 0;

arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";

arrowFull = "#(argb,8,8,3)color(1,1,1,1)";

columns[] = {0, 0.1, 0.25, 0.35, 0.44, 0.52, 0.60, 0.71, 0.82};

color[] = {1, 1, 1, 0.5};

colorScrollbar[] = {0.95, 0.95, 0.95, 1};

colorSelect[] = {0.95, 0.95, 0.95, 1};

colorSelect2[] = {0.95, 0.95, 0.95, 1};

colorSelectBackground[] = {0, 0, 0, 1};

colorSelectBackground2[] = {0.8784, 0.8471, 0.651, 1};

drawSideArrows = 0;

idcLeft = -1;

idcRight = -1;

maxHistoryDelay = 1;

rowHeight = 0;

soundSelect[] = {"", 0.1, 1};

period = 1;

shadow = 2;

class ScrollBar

{

arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";

arrowFull = "#(argb,8,8,3)color(1,1,1,1)";

border = "#(argb,8,8,3)color(1,1,1,1)";

color[] = {1,1,1,0.6};

colorActive[] = {1,1,1,1};

colorDisabled[] = {1,1,1,0.3};

thumb = "#(argb,8,8,3)color(1,1,1,1)";

};

};

class dialog

{

class controls

{

class MyLbox:RscListNBox

{

x=y=wherever;

canDrag=true;

rows=10;

lineSpacing = 1.3;

};

};

};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×