I'm trying to add "Emergency Armor Fix" to the Ship's Interior dockscreen with the option of either of the two action descs "No armor damage" or "No repair items in hold" just underneath it in the smaller letters.
Does the scrSetActionDesc code go in the label section or the code section after all the other scrAddAction stuff?
I can't find any examples anywhere. Has anyone done this in a mod? Can this be done without using a lambda? All my attempts just bring up the action label and no desc under it. Or won't it happen because the Ship's Interior dockscreen doesn't already have an action with a desc under it?
TIA.
action desc in scrAddAction query
-
- Fleet Officer
- Posts: 1533
- Joined: Tue Mar 22, 2011 8:43 pm
- Location: Alaska
- Contact:
I think it might be easier if you pasted the screen so they can see exactly what you got going on & then take it for Tinkering so they can get you an answer that you can actually use.
Last edited by shanejfilomena on Fri Jun 16, 2017 5:46 am, edited 1 time in total.
Flying Irresponsibly In Eridani......
I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
-
- Militia Lieutenant
- Posts: 104
- Joined: Thu Apr 07, 2011 9:05 pm
They're two separate commands - you add the action with scrAddAction, then set the description e.g.:
There are more examples in: RPGArmorDockScreens.xml and RPGDockScreens.xml
Code: Select all
(scrAddAction gScreen 'actionTest -1 'Test 'T (dbgOutput "Boo"))
(scrSetActionDesc gScreen 'actionTest "This will print Boo to the debug console")
My mods on github: https://github.com/gcabbage/TranscendenceMods