dockscreen special highlight keys query

Freeform discussion about anything related to modding Transcendence.
Post Reply
relanat
Militia Commander
Militia Commander
Posts: 409
Joined: Tue Nov 05, 2013 9:56 am

Tue Jul 18, 2017 3:52 pm

In the top part of the image attached there are 5 non-letter action keys for dockscreens.

They correspond to this code:

Code: Select all

<Text id="actionEsc">"[Esc] Esc"</Text>
<Text id="actionLeftArrow">"&lt;[LeftArrow] Left Arrow"</Text>
<Text id="actionRightArrow">"&gt;[RightArrow] Right Arrow"</Text>
<Text id="actionPgUp">"[PageUp] Page Up"</Text>
<Text id="actionPgDn">"[PageDown] Page Down"</Text>
For general information does anyone know of any others? But in particular is there an [Enter] highlight?

If so then text entry screens could have two highlighted actions.
In the second part of the image is the standard Corp Trading post order screen. It has 'C' as the highlighted key for Cancel which doesn't work. Presssing 'C' just adds 'C' to the text entry box.

If there is an 'Enter' highlight then the Order action could have Enter in yellow and the Cancel action could have Esc in yellow as shown. This would fix it, be more consistent as there would be an indicated key for every action and make it easier for new players. I remember this confusing me when I started to play.
attach dockscreen actions.jpg
attach dockscreen actions.jpg (32.83 KiB) Viewed 195 times

NMS
Militia Commander
Militia Commander
Posts: 387
Joined: Tue Mar 05, 2013 8:26 am

Tue Jul 18, 2017 5:45 pm

You can put whatever text you want in the highlight box, but only certain strings correspond to keys. EDIT: [Enter] is NOT one of them, but can be made a shortcut for an action by giving it default="1". If multiple actions are default, the first enabled one is selected if you press the key.

Fixing the shortcuts for that screen and the CSC Europa weapons vault is on my list, but feel free to do it yourself if you like.

User avatar
0xABCDEF
Commonwealth Pilot
Commonwealth Pilot
Posts: 88
Joined: Thu May 19, 2016 12:58 am
Location: Was destroyed by a Phobos-class dreadnought in the Eridani system

Tue Jul 18, 2017 8:13 pm

If you have any interesting information about dockscreens, please record it on the wiki page (http://wiki.kronosaur.com/modding/xml/dockscreen). I believe that [Return] may be the correct way to represent [Enter] in text.

Code: Select all

<OnFireWeapon>
	(gamEnd Nil "encountered an unexpected error")
</OnFireWeapon>
-Command Screen Library: RTS in a dockscreen
-Extended Justice: A safer Commonwealth for all
-Playership Bones: Revisit your old ship wrecks!
-Please help out our official Documentarist (me) by editing the wiki

NMS
Militia Commander
Militia Commander
Posts: 387
Joined: Tue Mar 05, 2013 8:26 am

Tue Jul 18, 2017 9:56 pm

There is some stuff I could add or fix on that page. But apparently I didn't have a wiki account. Now I do (NMS), but I don't have permission to edit.

Neither one of those key names is currently used, and neither one automatically makes the key work. In my open pull request I use [Enter] because that's the way it's labeled on most keyboards intended for Windows machines.

relanat
Militia Commander
Militia Commander
Posts: 409
Joined: Tue Nov 05, 2013 9:56 am

Mon Jul 31, 2017 6:58 am

NMS wrote: You can put whatever text you want in the highlight box.
Oh, I didn't realise that. I thought it had to relate to a key. Thanks.

This makes it simple to change the Trading Post and Europa text entry screens. I'll leave it to you though, because I'm having enough trouble with code without tackling github yet!

NMS wrote: If multiple actions are default, the first enabled one is selected if you press the key.
Thanks for this, too. This is very good info and handy to know.

User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2601
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

Thu Aug 03, 2017 7:30 pm

if you remove esc or enter from the default actions of your dockscreen, you can have an inescapable dockscreen. This is really useful if the player has to do some actions in the dockscreen for it to close and you don't want the player to just press esc and close it :D

User avatar
Xephyr
Militia Captain
Militia Captain
Posts: 828
Joined: Fri Dec 14, 2007 1:52 am
Location: Orion Arm, Milky Way
Contact:

Thu Aug 03, 2017 8:05 pm

NMS wrote:
Tue Jul 18, 2017 9:56 pm
There is some stuff I could add or fix on that page. But apparently I didn't have a wiki account. Now I do (NMS), but I don't have permission to edit.
I activated your account. Feel free to write as much on the wiki as you want; If you're not sure where to put something, ask me or 0xABCDEF/Archcannon.
Project Renegade (Beta) : "The Poor Man's Corporate Command!"
"Cowards die many times before their deaths; The valiant never taste of death but once. " -Julius Caesar as written by William Shakespeare, a notorious permadeath player.

Post Reply