Jump to content

[RELEASE] Custom GUI / Menu UPDATED for 1061


theduke

Recommended Posts

@theduke Thanks for answering.

What I mean is, on one of the rules pages I want to list features. What I'm trying to do, as there's about 25 I want to list, is to use the title1 to have "Features" in it and then use text1 as one big list... But, I need to insert line breaks to do this so, they appear as a list. Then I will knock off the remaining title and text boxes in rules.hpp and increase the size of text1.

Hope that makes sense....?

Link to comment
Share on other sites

  On 10/24/2017 at 7:55 PM, ReDBaroN said:

@theduke Thanks for answering.

What I mean is, on one of the rules pages I want to list features. What I'm trying to do, as there's about 25 I want to list, is to use the title1 to have "Features" in it and then use text1 as one big list... But, I need to insert line breaks to do this so, they appear as a list. Then I will knock off the remaining title and text boxes in rules.hpp and increase the size of text1.

Hope that makes sense....?

Expand  

ok, in that case you were on the right track. Its <br/>   no spaces. tested and works

Link to comment
Share on other sites

@theduke I had tried that before and tried it again just now and it doesn't work for me... Below is one that I have done as an example:

_rule1title = "Owner and Admins"; //Text that will be the title of rule #1
_rule1text = "BaroN<br/><br/>Soren<br/>Logik<br/>raining thunder"; //Text that will go in rule # 1 Box, maximum of Approx 300 characters

But, this just shows "<br/>" on screen without starting a new line...

Sorry if I'm being dense and have missed something..?

Link to comment
Share on other sites

  On 10/24/2017 at 9:24 PM, ReDBaroN said:

@theduke I had tried that before and tried it again just now and it doesn't work for me... Below is one that I have done as an example:

_rule1title = "Owner and Admins"; //Text that will be the title of rule #1
_rule1text = "BaroN<br/><br/>Soren<br/>Logik<br/>raining thunder"; //Text that will go in rule # 1 Box, maximum of Approx 300 characters

But, this just shows "<br/>" on screen without starting a new line...

Sorry if I'm being dense and have missed something..?

Expand  

ah yes sorry. thats the sqf. I thought you meant blocks of text in the HPP.

cant test this and just guessing really lol but i took this from the rules.sqf from the original epoch missions.

<br /></t>

also the bohemia forums are down for maintenance. so research is dead for now  lol

if that doesnt work. might want to look in there how they did it for the welcome messages/rules

Link to comment
Share on other sites

  On 10/25/2017 at 2:29 AM, theduke said:

ah yes sorry. thats the sqf. I thought you meant blocks of text in the HPP.

cant test this and just guessing really lol but i took this from the rules.sqf from the original epoch missions.

<br /></t>

also the bohemia forums are down for maintenance. so research is dead for now  lol

if that doesnt work. might want to look in there how they did it for the welcome messages/rules

Expand  

@theduke Thanks. I have tried that as well and it's not working. Odd as it works fine with a simple <br /> in the epoch rules in the mission init....

Link to comment
Share on other sites

  On 10/26/2017 at 2:56 AM, ReDBaroN said:

@theduke Jackpot! Nice one dude! 

Can't believe I didn't try that considering how many BE filter exceptions I have written over the years.... 

Many thanks

Expand  

haha Salival was the one to tell me. credit goes to him

Link to comment
Share on other sites

  On 10/26/2017 at 6:14 PM, ReDBaroN said:

@theduke One, hopefully, last question... How do you increase the font size for the rule titles? So, _rule1title, _rule2title etc.?

Expand  

I dont have a way to test it at the moment, but im sure if you look at the rules.sqf from the epoch mission it'll show you there.

or if you want to do them individually you can do this

_rule1title = format ["<t size='0.60' color='#DBA901' align='center'>RULE TITLE HERE<br /></t>"];

Note that the size, color and alignment is there also

Link to comment
Share on other sites

  • 5 weeks later...

I got it working but I'd like to add atv and mozzie in the deployable. I tried a couple things but its not working. A mozzie would take  ItemToolbox, 2x PartGeneric,  PartEngine, ItemJerrycan but not too sure how to.

Also, our rules is in English and Portuguese but I'd like to have it in Russian too since we got plenty of these guy on our server but it doesn't work when you go in the game the character are replaced with exclamation, any way to change that?

Link to comment
Share on other sites

Hey duke,

I've installed your custom GUI menu and have edited it so it just has View Distance buttons and Suicide, Rules actions. The problem I'm having is in relation to the 2.8.2 Deploy Anything mod. When I have your menu installed without the 2.8.2 Deploy Anything Mod it works fine but as soon as I install the mod I can no longer open the menu. RPT isn't giving any errors and I don't know what to do.

Link to comment
Share on other sites

  On 11/30/2017 at 3:33 AM, creation said:

Hey duke,

I've installed your custom GUI menu and have edited it so it just has View Distance buttons and Suicide, Rules actions. The problem I'm having is in relation to the 2.8.2 Deploy Anything mod. When I have your menu installed without the 2.8.2 Deploy Anything Mod it works fine but as soon as I install the mod I can no longer open the menu. RPT isn't giving any errors and I don't know what to do.

Expand  

The only issue ive known that the deploy anything mod caused, was it would overwrite any "right click" mod you had.

how do you open the menu?

 

Link to comment
Share on other sites

  • 8 months later...

This is a sexy mod. Cant wait to get balls deep into it.

Does anyone know if there is a way to integrate it with deploy anything? So I set the deployable's in the deployanything config, is there a way to call them through the menu buttons?

Link to comment
Share on other sites

  • 2 weeks later...

I'm sure there's a way, but i never "figured it out". I myself would love this as you can deploy and drop where you want. But the menu buttons run  script, which the deploy anything is a bit more customized.

It's way above my head lol

Link to comment
Share on other sites

tested and functional.

menu_init.sqf :

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 9/3/2018 at 4:32 AM, Mig said:

tested and functional.

menu_init.sqf :

  Reveal hidden contents

 

Expand  

very nice! good work.

Link to comment
Share on other sites

  • 2 weeks later...
  On 9/3/2018 at 4:32 AM, Mig said:

tested and functional.

menu_init.sqf :

  Reveal hidden contents

 

Expand  

Hi,

this doesn't work for me.

It closes the Dialog but it does not execute the deploy anything correctly.

Furthermore I think there is a typo in your code: 

((ctrlParent (_this select 0)) closeDisplay 7777);                           // this command close the dialog
[0] execVM "scripts\deployAnything\deploy.sqf";                            // execute the scipt

instead of

((ctrlParent (_this select 0)) closeDisplay 7777),                           // this command close the dialog
[0] execVM "scripts\deployAnything\deploy.sqf";                          // execute the scipt

This is my customs/menu/menu_init.sqf:

deployable1script = {((ctrlParent (_this select 0)) closeDisplay 7777); [0] execVM 'scripts\deployAnything\deploy.sqf';};

This is a excerpt from my scripts/deployAnything/config.sqf:

DZE_DEPLOYABLES_CONFIG = [
	["ItemToolbox",[0,6,1],5,0.1,false,false,false,false,false,true,true,["MMT_Civ"],[],["ItemToolbox"],"true"],
	["ItemToolbox",[0,6,1],5,0.1,false,false,false,false,false,true,true,["CSJ_GyroC"],[],["ItemToolbox", "PartEngine", "ItemJerrycan", "PartVRotor", "PartGeneric"],"true"],
	["ItemToolbox",[0,9,2],5,0.9,true,true,false,true,true,false,true,["HeliHCivil"],[],["ItemRuby", "ItemSapphire"],"true"]
];

Does anybody know where the fault could be? I think it is the parameter for the execVM :/

Link to comment
Share on other sites

Hi, thanks for your reply.

I get with exactly your code this error

Error in expression <getDeployableClass = {
(DZE_DEPLOYABLES select _this) select 11
};

getDeployabl>
  Error position: <select _this) select 11
};

getDeployabl>
  Error select: Typ Array, erwartet Zahl,Bool
File mpmissions\__CUR_MP.Chernarus\scripts\deployAnything\wrapper.sqf, line 60

 

Moreover what is the parameter for in:

[0] execVM "scripts\deployAnything\deploy.sqf";

I assumed it is the row of the DZE_DEPLOYABLES_CONFIG-Array. Is this correct?

Link to comment
Share on other sites

Hi, thank you for your help :)

scripts\deployAnything

scripts\deployAnything\config.sqf:

  Reveal hidden contents

scripts\deployAnything\deploy.sqf:

  Reveal hidden contents

scripts\deployAnything\functions.sqf:

  Reveal hidden contents

scripts\deployAnything\init.sqf:

  Reveal hidden contents

scripts\deployAnything\pack.sqf:

  Reveal hidden contents

scripts\deployAnything\player_deploy.sqf:

  Reveal hidden contents

scripts\deployAnything\wrapper.sqf:

  Reveal hidden contents

custom\menu

custom\menu\defines.hpp:

  Reveal hidden contents

custom\menu\menu.hpp:

  Reveal hidden contents

custom\menu\menu_init.sqf:

  Reveal hidden contents

The rest should be fine (info2.hpp, info3.hpp, logo.paa, rules.hpp, rules_init.sqf, rules2.hpp, rules2_init.sqf and the clickActions folder).

Didn't find any way to upload it as a zip archive, so here is the raw code.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...