You must be logged in to post messages.
Please login or register

Modding and Scripting
Moderated by Yeebaagooon, TAG, nottud

Hop to:    
Welcome! You are not logged in. Please Login or Register.6 replies
Age of Mythology Heaven » Forums » Modding and Scripting » Search Box
Bottom
Topic Subject:Search Box
Mythic_Freak
Mortal
posted 19 September 2007 09:01 AM EDT (US)         
Today I was wondering if it was possible to add some sort of search box to the in-game UI. I don't know much about trigger etc. , but I looked into some effects and it seemed that they could hold vars between % tags. So I came up with this today:
<gadget name="FindIdleUnitType" type="dialog" size1024="12 147 592 187" background="ui\background greek opaque" texturereplace="" tilebackground="" closebutton="" bevel="" closebuttonusealpha="" windowzstyle="" closeonesc="" dontautoclose="">
<gadget name="IdleUnitInput" type="editBox" enterkey="" grabinput="" textfont="ChatInput" textfontsize="12" textcolor="255 255 255" size1024="15 152 461 182" enableime="" editboxmaxchars="100"></gadget>
<gadget name="IdleUnitSend" size1024="466 152 562 184" type="stateButton" texturecoords="0 0 .75 1" textfont="InGameButtons" textfontsize="18" textcolor="255 0 0" statebuttonuseinternalstates="">Find
<command>uiFindIdleType("%IdleUnitInput%")</command>
<stateentry background="ui\ui button long 96x32"></stateentry>
<stateentry background="ui\ui button long 96x32 clicked"></stateentry>
<stateentry background="ui\ui button long 96x32 rollover"></stateentry>
<stateentry background=""></stateentry>
</gadget>
</gadget>
It's based on the chat gadget, and I was hoping the grabinput="" tag would somehow tranfer my variable to the command, but it doesn't seem to work .

Anyway, is this a dead end (I know it would work with a dropdown box, but I'm trying to make this as random as possible - so people can input "ulfsark" as well as "abstractVillager"), or can it somehow be modified that it does work?
AuthorReplies:
Godyssey
Mortal
(id: Two_ace_u)
posted 21 September 2007 05:04 AM EDT (US)     1 / 6       
Well a search is complex, Not only find a protounit, but also which one since there a person might make a lot. Take a look at pftq's Advanced trigger (Id finder)to help with it.

A green great dragon.
Mythic_Freak
Mortal
posted 21 September 2007 12:27 PM EDT (US)     2 / 6       
Thanks, but I think you missed a part. I's supposed to work while in-game, not using a trigger.
Mythic_Freak
Mortal
posted 03 October 2007 03:00 PM EDT (US)     3 / 6       
Anyone else?
rjs23
Mortal
posted 03 October 2007 04:39 PM EDT (US)     4 / 6       
*shook head no* Sorry fella
i dont speak chatgadgetianish language
StarGater93
Mortal
posted 09 October 2007 07:33 PM EDT (US)     5 / 6       
"*shook head no* Sorry fella
i dont speak chatgadgetianish language "

Lol.... i dont think i speak that ether....
Mythic_Freak
Mortal
posted 10 October 2007 06:34 AM EDT (US)     6 / 6       
Awww....

Someone must know what the grabinput"" does and how to use it.. .
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Mythology Heaven | HeavenGames