Jump to content
Sign in to follow this  
benreeper

3D Dialogs

Recommended Posts

Does anyone know if 3D dialogs work in ArmA?

I can get them to show up but I can't create any text or buttons. I only see the object. I'm pretty sure that it does not work the way id did in OFP.

--Ben

Share this post


Link to post
Share on other sites

Here an example from ui.pbo:

Quote[/b] ] class GPS : RscObject {

model = "\ca\ui\gps.p3d";

x = 0.75;

y = 0.7;

z = 0.3;

scale = 0.085;

class Areas {

class Display {

class controls {

class GPSSquare : RscText {

y = -0.05;

h = 1;

sizeEx = 0.49;

};

};

};

};

};

Share this post


Link to post
Share on other sites

That doesn't work. I can bring up the model but I am unable to put any usable buttons/controls on them, unlike OFP.

--Ben

Share this post


Link to post
Share on other sites

Show me what you tried. I can show you the errors perhaps.

Share this post


Link to post
Share on other sites

Thanks, There are no error messages. The radio does come up but those activetext controls aren't there.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class RscObject

{

access = ReadAndWrite;

type = 80;

scale = 1.0;

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

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

};

class WalkieTalkie : RscObject

{

model = "\ca\ui\radio.p3d";

position[] = {0.08, -0.014, 0.4};

positionBack[] = {0.08, -0.014, 0.2};

scale = 0.1;

class Areas

{

class Papir

{

class controls

{

class RscRadioText : RscActiveText

{

sizeEx = 0.17;

x = 0.005;

y = 0.02;

h = 0.1;

};

class RadioAlpha : RscRadioText

{

y = 0.05;

};

class RadioBravo : RscRadioText

{

y = 0.17;

};

class RadioCharlie : RscRadioText

{

y = 0.29;

};

class RadioDelta : RscRadioText

{

y = 0.41;

};

class RadioEcho : RscRadioText

{

y = 0.53;

};

class RadioFoxtrot : RscRadioText

{

y = 0.65;

};

class RadioGolf : RscRadioText

{

y = 0.77;

};

class RadioHotel : RscRadioText

{

y = 0.89;

};

class RadioIndia : RscRadioText

{

y = 1.01;

};

class RadioJuliet : RscRadioText

{

y = 1.13;

};

};

};

};

};

class BWPP_Dial_Radio

{

idd = 51001;

movingEnable = true;

controlsBackground[] = {};

controls[] = {};

objects[] = {Radio};

class Radio : RscObject//WalkieTalkie

{

idc = 1;

model = "\ca\ui\radio.p3d";

position[] = {0.05, -0.14, 0.5};

direction[] = {0, 3, 1};//{0, 4, 1}

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

scale = 0.60;

class Areas

{

class Papir

{

class controls

{

class RscRadioText : RscActiveText

{

idc = 2;

sizeEx = 0.17;

x = 0.005;

y = 0.02;

//w = 0.4;

colorText[] = {.05, .05, .05, 1.0};

h = 0.1;

};

class RadioAlpha : RscRadioText

{

y = 0.05;

idc = 10;

};

class RadioBravo : RscRadioText

{

y = 0.17;

idc = 11;

};

class RadioCharlie : RscRadioText

{

y = 0.29;

idc = 12;

};

class RadioDelta : RscRadioText

{

y = 0.41;

idc = 13;

};

class RadioEcho : RscRadioText

{

y = 0.53;

idc = 14;

};

class RadioFoxtrot : RscRadioText

{

y = 0.65;

idc = 15;

};

class RadioGolf : RscRadioText

{

y = 0.77;

idc = 16;

};

class RadioHotel : RscRadioText

{

y = 0.89;

idc = 17;

};

class RadioIndia : RscRadioText

{

y = 1.01;

idc = 18;

};

class RadioJuliet : RscRadioText

{

y = 1.13;

idc = 19;

};

};

};

};

};

};

BWPP_Dial_Radio is the dialog that I call.

--Ben

Share this post


Link to post
Share on other sites

I would guess that no text is applied to the controls. Try adding text="test"; in RscRadioText class.

Share this post


Link to post
Share on other sites

Actually I did. I removed it when I posted the code here. Here is what the rscactivetext class really was.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class RscRadioText : RscActiveText

{

idc = 2;

sizeEx = 0.17;

x = 0.005;

y = 0.02;

//w = 0.4;

colorText[] = {.05, .05, .05, 1.0};

h = 0.1;

text = "hello world!";

};

It did work in OFP. In OFP the options menu was a laptop computer, now it's just a dialog so the ability to make 3D dialogs must have been removed. I wonder why?

--Ben

Share this post


Link to post
Share on other sites

3D dialogs are still possible (I am doing a lot for CWR ui) but the system has changed slightly. Try using class objects instead of objects[]={};

Here an example that should theoretically work as it is:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class RscObject;

class RscActiveText;

class BWPP_Dial_Radio

{

idd = 51001;

movingEnable = true;

class objects

{

class Radio : RscObject

{

idc = 1;

model = "\ca\ui\radio.p3d";

position[] = {0.05, -0.14, 0.5};

direction[] = {0, 3, 1};//{0, 4, 1}

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

scale = 0.60;

class Areas

{

class Papir

{

class controls

{

class RscRadioText : RscActiveText

{

idc = 2;

sizeEx = 0.17;

x = 0.005;

y = 0.02;

//w = 0.4;

colorText[] = {.05, .05, .05, 1.0};

h = 0.1;

text="test";

};

class RadioAlpha : RscRadioText

{

y = 0.05;

idc = 10;

};

class RadioBravo : RscRadioText

{

y = 0.17;

idc = 11;

};

class RadioCharlie : RscRadioText

{

y = 0.29;

idc = 12;

};

class RadioDelta : RscRadioText

{

y = 0.41;

idc = 13;

};

class RadioEcho : RscRadioText

{

y = 0.53;

idc = 14;

};

class RadioFoxtrot : RscRadioText

{

y = 0.65;

idc = 15;

};

class RadioGolf : RscRadioText

{

y = 0.77;

idc = 16;

};

class RadioHotel : RscRadioText

{

y = 0.89;

idc = 17;

};

class RadioIndia : RscRadioText

{

y = 1.01;

idc = 18;

};

class RadioJuliet : RscRadioText

{

y = 1.13;

idc = 19;

};

};

};

};

};

};

};

Share this post


Link to post
Share on other sites

Didn't work. Still no text, just the model. You say you've gotten them to work? The only place that I see them used in ArmA is in the map. Could that be the only place that they work?

--Ben

Share this post


Link to post
Share on other sites

I've gotten the laptop,notebook and book working so far. Cant imagine that radio shouldnt work... But I dunno whats the reason here...

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  

×