-
Content Count
19 -
Joined
-
Last visited
-
Medals
Everything posted by Ser_Charles
-
class RscText { type = CT_STATIC; idc = -1; style = ST_LEFT; colorBackground[] = {0, 0, 0, 1}; colorText[] = {1, 1, 1, 1}; font = FontM; sizeEx = 0.04; h = 0.04; text = ""; }; class My_BlueText : RscText { colorText[] = {0, 0, 1, 1}; x = 0.1; w = 0.4; }; class My_Dialog { //... controls[] = { My_Text_1, My_Text_2 }; class My_Text_1 : My_BlueText { text = "Line 1"; y = 0.2; }; class My_Text_2 : My_BlueText { text = "Line 2"; y = 0.25; }; }; I defined those classes of UI in description.ext under the class "rscTitles", which is copied from arma wiki, But it reports an error says "no entry..." What does that mean?
-
Thanks a lot, again.:) Now I find the problem, maybe. I transfer the code "cutRsc" to Init.sqf from the initialization of player unit, and then the GUI shows. I don't know why but perhaps it is because the initialization of units is too early?
-
Wow, thanks a lot. And, What is GUI editor? Is it built in Arma3? I haven't seen it anywhere in Arma3.
-
And I have tried some other codes given by arma3 wiki, also not working:( like: class MyHelloWorldDialog { idd = -1; // set to -1, because we don't require a unique ID movingEnable = true; // the dialog can be moved with the mouse (see "moving" below) enableSimulation = false; // freeze the game controlsBackground[] = { }; // no background controls needed objects[] = { }; // no objects needed controls[] = { MyHelloText }; // our "Hello world" text as seen below: duration = 1e+1000; class MyHelloText { idc = -1; // set to -1, unneeded moving = 1; // left click (and hold) this control to move the dialog // (requires "movingEnabled" to be 1, see above) type = CT_STATIC; // constant style = ST_LEFT; // constant text = "Hello world"; font = FontM; sizeEx = 0.023; colorBackground[] = { 1, 1, 1, 0.3 }; colorText[] = { 0, 0, 0, 1 }; x = 0.8; y = 0.1; w = 0.2; h = 0.05; }; }; Still nothing shown on the screen. ---------- Post added at 03:42 ---------- Previous post was at 03:41 ---------- Thanks.
-
And what is the default arma3 font? FontM seems does not exist in arma3. ---------- Post added at 03:20 ---------- Previous post was at 03:17 ---------- I have tried but Still nothing shown on the screen.
-
Thank you all guys above, I have modified my class, and there is no error, but there is no control shown on the screen now... This is what I have modified: class rscTitles { class RscText { type = CT_STATIC; idc = -1; style = ST_LEFT; colorBackground[] = {0, 0, 0, 1}; colorText[] = {1, 1, 1, 1}; font = FontM; sizeEx = 0.04; h = 0.04; text = ""; }; class My_BlueText : RscText { colorText[] = {0, 0, 1, 1}; x = 0.1; w = 0.4; }; class My_Dialog { //... idd=-1; fadein = 0; fadeout = 0; duration = 1; controls[] = { My_Text_1, My_Text_2 }; class My_Text_1 : My_BlueText { text = "Line 1"; y = 0.2; }; class My_Text_2 : My_BlueText { text = "Line 2"; y = 0.25; }; }; }; And in the initialization of a certain Unit I wrote: cutRsc ["My_Dialog", "PLAIN", 1, false];
-
I see now! Thanks.
-
I just copied your code into my description.ext, still the same error. I am thinking the problem may not be caused by these codes but others. BTW, what is GUI editor? ---------- Post added at 15:53 ---------- Previous post was at 15:51 ---------- No entry 'mymissionroot\description.ext/rscTitles/My_Dialog.duration'.
-
Question about UI
Ser_Charles replied to Ser_Charles's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank you very much. This is just what I need! -
I want to create a UI for airplanes that shows if the gear is up or down. But I find when showing UI, players's control will be released and you cannot control a plane while the UI is showing. Is there any way to make the UI showing and don't affect the player? I mean, say, when you're flying an airplane, there is a sign showing whether your gear is up and down? ---------- Post added at 06:33 ---------- Previous post was at 06:31 ---------- For the record, I wrote a dialog class in description.ext, and use "createDialog" in a certain sqf file. Will Display make it different?
-
I am fully confused about steam workshop
Ser_Charles posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
How to submit a multiplayer game to the steam workshop? I've built a mission dedicated to multiplayer with mission editor inside the game. And then I use the workshop button in the editor to submit it. But eventually I find that it is actually submited as a scenario. Anyway, how to submit multiplayer missions to workshop? -
I am fully confused about steam workshop
Ser_Charles replied to Ser_Charles's topic in ARMA 3 - MISSION EDITING & SCRIPTING
So that's how matters stand... It is my fault not to being patient and prudent, thanks~ -
I want to show the NATO and CSAT flags on the screen, and because I don't know where these two flags' texture files are, so I downloaded one NATO flag picture and use Texviewer 2 to convert it to paa. Here are the problems: 1. The paa I convert from that NATO flag picture becomes a red one, but in Texviewer 2 it is absolutely blue; 2. Does anybody know where are these two flags' texture files are? Or how can I get the texture from those default flags?; 3. I used "cutText" to output the picture but it doesn't work, does anybody know how to output a rich text that includes a paa picture? THX~
-
About paa and richtext
Ser_Charles replied to Ser_Charles's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Wow, things become somewhat thorny at this point.:butbut: I'll study on this later, thanks again. -
About paa and richtext
Ser_Charles replied to Ser_Charles's topic in ARMA 3 - MISSION EDITING & SCRIPTING
How to output a structured text on the screen? I've used cutText, titleText, hintC and hint, only hint works when the text contains a picture. But hint only show little messages on the right top of the screen, which attracts little attentions, so I'd like to find a way to draw that picture in the middle of the screen. -
How complex is Arma 3's scripting language?
Ser_Charles replied to Cathrynn's topic in ARMA 3 - MISSION EDITING & SCRIPTING
As easy as any scripting language. -
How to draw a progress bar on the screen?
Ser_Charles posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
How to draw a progress bar on the screen? And how to show this bar to only certain players rather than all of them? -
How thris Restriction Zone Module works?
Ser_Charles replied to chrizzo's topic in ARMA 3 - MISSION EDITING & SCRIPTING
The area of zone restriction itself seems to have no function, the true restricted area is the area of the trigger which is synchronized to it. -
About paa and richtext
Ser_Charles replied to Ser_Charles's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Firstly thank your tips:) But, about the third problem, I do know the structured text, my problem is that I don't know how to output a text including given pictures to the screen, and I used "cutText" but it doesn't work anyway. My codes are akin to this: txt=image "\A3\Data_F\Flags\Flag_nato_CO.paa"; cutText[txt, "PLAIN", 2]; Anything wrong with my codes?