Page 1 of 1

HELP: new custom editor item for NOTES (clone of script)

Posted: Wed Oct 10, 2012 10:56 pm
by Komag
I figure I could clone a script_entity and just change the icon to a new custom one, something like the N for the notes on the in-game automap. Then I can place my big bright N's in the editor and put notes to myself in them (I would just comment out every line so no scripts try to run)

How do I do this???

How do I make a custom editor icon and how do I assign it a number so I can do something like this:

Code: Select all

cloneObject{
name = "note_entity",
baseObject = "script_entity",
editorIcon = ??,
}
or should I do a defineObject?

Re: HELP: new custom editor item for NOTES (clone of script)

Posted: Wed Oct 10, 2012 11:41 pm
by Komag
I see in the objects.lua that script_entity editorIcon is 148. But where are these icons? I can't find them in the asset pack textures or anywhere

(maybe I'll use the secret icon, 76)
(I'd like to use the starting_location icon, the arrow, but it's not listed in objects.lua)
(maybe stairs_up, 44)
(or healing crystal, 60)

Re: HELP: new custom editor item for NOTES (clone of script)

Posted: Thu Oct 11, 2012 12:09 am
by Grimwold
I was wondering this too earlier today too, when I was picking an icon for anti-magic zones... I even took a look in the game subfolder of Steam, to no avail. I have a sneaky suspicion they are hard coded into the editor.

EDIT - oh just found the arrow... it's editorIcon = 32,

Re: HELP: new custom editor item for NOTES (clone of script)

Posted: Thu Oct 11, 2012 2:34 am
by Komag
how/where did you find that?

Re: HELP: new custom editor item for NOTES (clone of script)

Posted: Thu Oct 11, 2012 2:40 am
by Grimwold
Komag wrote:how/where did you find that?
It was the first entry in objects.lua in the asset pack (v2)

Code: Select all

defineObject{
	name = "party",
	class = "Party",
	editorIcon = 32,
}

Re: HELP: new custom editor item for NOTES (clone of script)

Posted: Thu Oct 11, 2012 2:41 am
by Neikun
Fun Fact: The starting location is the object "Party"
EDIT: Ninja'd as I went to get supper haha

Re: HELP: new custom editor item for NOTES (clone of script)

Posted: Thu Oct 11, 2012 4:23 am
by Komag
ah, thanks, I'll probably use that then, since it's so extremely rarely used elsewhere and also stands out pretty well

Re: HELP: new custom editor item for NOTES (clone of script)

Posted: Thu Oct 11, 2012 12:32 pm
by Neikun
But will it show up on the minimap as an arrow. I think not. D:

Re: HELP: new custom editor item for NOTES (clone of script)

Posted: Thu Oct 11, 2012 1:05 pm
by Komag
not if it's a clone of a script item, will it? they don't show up on the min map

Re: HELP: new custom editor item for NOTES (clone of script)

Posted: Thu Oct 11, 2012 1:15 pm
by Grimwold
If you do want something that shows up on the automap, there is a map_marker object which you could use or clone.

EDIT - but of course you can't type notes in that.