Search the Community
Showing results for tags 'rsc'.
Found 8 results
-
rsc Need a BIS already defined RSC, like "Display3DENCopy"
bi_mg posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello Arma Developers, Coders and Fans, I finished a script to test each arguments and expected result for functions and its diagnostic results in very easy way. e.g: // ---- PROCESS ---- [ [ "Test Datatypes", [ // ---- TEST NIL [ "MB_IS_NIL( VAR )", [ [ "should be nil", { true }, { nil } ], [ "should not be nil", { false }, { _typeBoolNull } ], [ "should not be nil", { false }, { _typeBoolContent } ] ], { MB_IS_NIL( _this ) } ], // ---- TEST BOOL [ "MB_IS_BOOL( VAR )", [ [ "should be boolean", { true }, { _typeBoolNull } ], [ "should not be boolean", { false }, { _typeSclNull } ], [ "should not be boolean", { false }, { _typeSclContent } ] ], { MB_IS_BOOL( _this ) } ] ] ], 10000 0 ] call MB_fnc_testFunctions; All worked fine. Now I need a simple way to display in RSC format the output array is like this [ _header, [ _desc, _args, _expect, _return, _result, _diag ] ] "Display3DENCopy" I like to use, but I realy do not know how to use the BIS defined RSC and could I use it anyway??? I look forward for asweres : -
Vertically algin text in RscText
juleshuxley posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Why is my RSC text not centered? Here's my RSC class: #define CT_STRUCTURED_TEXT 13 #define ST_CENTER 0x02 class MyRscStructuredText { idc = -1; type = CT_STRUCTURED_TEXT; // defined constant style = ST_CENTER; // defined constant x = 0.1; y = 0.1; w = 0.1; h = 0.1; size = 0.018; text = ""; class Attributes { font = "TahomaB"; color = "#000000"; align = "center"; valign = "middle"; shadow = false; shadowColor = "#ff0000"; size = "1"; }; }; Here's the implementation: _item = _display ctrlCreate ["MyRscStructuredText", -1]; _item ctrlSetPosition [0,0,0.0,0.0]; _item ctrlSetText "X"; _item ctrlSetBackgroundColor [1, 0, 0, 1]; _item ctrlSetTextColor [1,1,1,1]; Result: While it appears to be horizontally aligned, why is it not vertically aligned? Why is valign being ignored? I just want that white x to be in the dead center of the red box, I don't mind what type the RSC is. Setting it to Structured Text doesn't appear to be doing anything anyway -
Create RscButton if variable is true
MechSlayer posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
class taximetro: RscButton { idc = 1600; onMouseButtonClick = "closeDialog 1; createDialog 'interfazTaximetro'; ctrlSetText [1001, format ['%1', Dinero]];"; text = "Taximetro"; //--- ToDo: Localize; x = 0.040674 * safezoneW + safezoneX; y = 0.90607 * safezoneH + safezoneY; w = 0.0787416 * safezoneW; h = 0.0420073 * safezoneH; }; I want this to be created only if a condition is true. How can i make it? -
class RscText_1000: RscText { idc = 1000; text = "Paciente:"; //--- ToDo: Localize; x = 0.237519 * safezoneW + safezoneX; y = 0.15 * safezoneH + safezoneY; w = 0.0524963 * safezoneW; h = 0.07 * safezoneH; }; class nombrePaciente: RscText { idc = 1001; text = "hint format['%1', nombre];"; x = 0.289762 * safezoneW + safezoneX; y = 0.171182 * safezoneH + safezoneY; w = 0.104993 * safezoneW; h = 0.028 * safezoneH; }; Hey, how can I make it show the name of the player ? It only shows the code
-
Select-able controls in dialog/display
Lordeath19 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I am making a manual artillery computer with a dialog, the user enters the coordinates of the target using RscEdit fields, and then presses a "confirm" button. The math is then done and an output is displayed in an RscText box. I want to change the RscText to have the user be able to select the output inside the RscText and copy it (for later use if he wants), like what is done in the debug console's output box. The problem is that i can either use RscText, and the user is able to see the output, but can't select it Or using RscEdit where the user can see and copy it, but can accidentally delete/modify it and making the result completely off. Any help will be much appreciated! -
UI Flicker when updating display element
3LGStevo posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I've recently created a new HUD overlay for my altis life server, on the UI, there is a picture that displays an icon of a mail item and when the user receives a new message, the icon changes to a picture alerting them that they have a new message. When this changeover occurs, my whole UI overlay flickers off and then back on again. This only appears to do it for this icon, and one other icon when they're being changed. The rsc display is not removed at any point while these icons are updated in the code, but for the first swap-over, the flicker occurs. After the first swap-over, the interface seems happy enough to swap them over without flashing/flickering. There's not much point in me posting the code here as A: it's far too long, and B: I've been over it several times. The issue isn't consistent from a repeatable point of view... but is, since it only seems to occur on the first change over of each icon. What I need to know is; 1. Are there any known issues with amending RSC layer pictures that could cause this? 2. Should all files associated with the Rsc Layer be preprocessed? What I've already tried; 1. Loading both images required before the interface is fully utilised - doesn't fix the problem 2. Amended the images manually through debug console - still flashes the UI for the first change over, then continues as expected 3. Removing the UI and re-creating the UI once the images have been swapped over - the next swap-over doesn't flicker. 4. All RscText values on the HUD can be changed / amended with no flickering... the issue solely happens with amending RscPicture's text.- 6 replies
-
- ui display
- rsc
-
(and 2 more)
Tagged with:
-
Weird RscPicture Color Change Problem [solved]
nomisum posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
I have an issue with two Pictures laying on top of each other. The second one (Carrier Strength) gets a yellowish tone. Carrier-Strength is an opaque picture without Alpha Channel, I tried removing its background too but got even worse results (faint, faded overlay). There is no color-difference in the source pic (PNG), so the mistake must happen either in conversion to PAA or in the config. The phone is RGBA DXT5 with Alpha Channel. The carrier pic I cant get to DXT5, it always snaps to ARGB1555 (thank you TexView UX -.-). I can imagine this being the cause, but cant get them to have exactly the same setting. Both PAA use RscPicture with the following settings (x,y,w,h differ obviously): class RscBackPicture { access = 0; type = 0; idc = -1; style = 48; colorBackground[] = { 0, 0, 0, 0 }; colorText[] = { 1, 1, 1, 1 }; font = "TahomaB"; sizeEx = 0; lineSpacing = 0; text = ""; fixedWidth = 0; shadow = 0; x = 0; y = 0; w = 0.2; h = 0.15; moving = 1; }; Things I tried: * different RGB schemes in TexView but it seems to take its own setting (at least it resets when reopening the PAA) * playing around with colorBackground * Moving the phone-pic to controlsBackground while putting the carrier-pic to controls I'd be grateful for any hint!- 1 reply
-
- rscpicture
- color
-
(and 2 more)
Tagged with:
-
RESOURCE: Gui Rsc Base classes & Colours
terox posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I googled for a premade base class definition for the Gui configs and didn't get a decent hit, so for anyone else wanting base definitions for their GUI projects, I hope you find this useful BASE DEFINITIONS Correct as for A3 v1.50 It's a bit messy, was quickly done but should get you up and running Just mass edit the "MyTag_" and replace it with your own tag and your good to start inheriting from and define your own default colours COLOUR DEFINITIONS I also found this in my archives, I have no idea who made this, which is a shame because it must have taken a while to enter all these values and it would have been nice to pass on the credits. Hopefully someone will find this useful