Knuckle Cracker

Particle Fleet => Map Makers, Ship Builders, and Coders => Topic started by: GoodMorning on January 07, 2017, 11:15:13 PM

Title: PRPL UID helper script
Post by: GoodMorning on January 07, 2017, 11:15:13 PM
It's still a pain to find it for Emitters, Caches, ships, and so forth.

Introducing the ListUIDs.prpl script, to reveal the UIDs of all nearby units and ships without getting in the way.

The Core it's attached to will vanish on finalized maps. In edit mode, it will hover off to the side of your mouse, and list the UIDs of all units and ships in range. It can't find ship names, but will state the hull size. It will find unit types, but can't tell you which script a Core is running.

Holding (left) Shift will make it visible and snap under the mouse in case you wish to delete the Core. Holding (left) Alt will move it to the opposite side of the mouse, in case it was in the way.

Drop the file in the scripts folder of your map, add a new PRPL Core, attach the script, and you're ready. (Not responsible for interactions with badly-written GetUnitsInRange calls).
Title: Re: PRPL UID helper script
Post by: Oblivion on January 07, 2017, 11:26:45 PM
Answer: Cause I really wanna know how you made text appear.
Title: Re: PRPL UID helper script
Post by: GoodMorning on January 07, 2017, 11:44:02 PM
What was the question? (You can read the script, but it's a matter of SetText and SetTextSize)
Title: Re: PRPL UID helper script
Post by: Oblivion on January 08, 2017, 09:48:45 AM
"why are oyu reading this?" - in the script
Title: Re: PRPL UID helper script
Post by: GoodMorning on January 10, 2017, 12:03:50 AM
Here's the new edition, which sticks to the lower-left of the screen, hopefully avoiding the UI.

Note: LeftAlt will still move the text.
Title: Re: PRPL UID helper script
Post by: Stickman on January 16, 2017, 08:32:46 PM
Quote from: Oblivion on January 08, 2017, 09:48:45 AM
"why are oyu reading this?" - in the script

BTW, this part was quite amusing to figure out. Stack languages have very weird workarounds.