Posted By
|
Message
|
Don Luciano Heavy combat pancake
Registered 25/10/2006
Points 380
|
5th October, 2010 at 17:32:09 -
I have recently switched my project to hwa, but all my list objects, editboxes and such do not work anymore, i mean they are invisible, and i have a lot of them ingame.
Is there a way to make them visible?
or
What is the best way to replace them, esspecially concerning editbox.
A quick edit: I am mostly concerened how should i make keyboard input like editbox has without it. I was thinking it could be done by placing a lot of conditions with on key pressed for every letter and put it in a var. But i am looking for an easier way, perhaps some extension or something?...
Edited by Don Luciano
Code me a sausage!
|
Jon Lambert Administrator
Vaporware Master
Registered 19/12/2004
Points 8235
|
6th October, 2010 at 18:42:45 -
I'm not sure why it would do that (I haven't used HWA for anything with window controls in it) but if you want to retrieve keyboard input you could use either LIJI's Key object or Jamie's Keyboard object. The Keyboard object only retrieves keyboard input while the Key object will also retrieve mouse input. You would use either the Keyboard object's "On any key press" and then set a string to itself plus the last key pressed (this is an expression) or use the Key object's "On key pressed" and use the "Last key pressed" expression from the same object for the" On key pressed".
The Key object will also take input while the application is out of focus.
Sandwich Time!Whoo!
JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364
|
Don Luciano Heavy combat pancake
Registered 25/10/2006
Points 380
|
6th October, 2010 at 19:23:49 -
I did try the key object but it was giving not the last key pressed but the key before that which i couldn't change to current pressed,and when i would press enter or shift it would really write enter, shiht, ctrl. That's two reasons why i didn't like it. But i did made all the events when a key "a" pressed write "a" etc... i even made delete and spacing, it didn't take that long anyway.
My bigger problem now is lists and tree control, cause i have about 10 lists in the game for various stuff. But i have some kind of an idea how i would do them, it's just that im delaying that bit for some time cause its going to take me a lot of time to replace them all.
Thanks for the reply.
Code me a sausage!
|
Jon Lambert Administrator
Vaporware Master
Registered 19/12/2004
Points 8235
|
6th October, 2010 at 22:17:24 -
What were your settings on those objects when you put them in HWA? I made a new frame and put some in and they appeared just fine, so I don't think it is a problem with HWA unless you changed some properties that made them incompatible.
Sandwich Time!Whoo!
JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364
|
Don Luciano Heavy combat pancake
Registered 25/10/2006
Points 380
|
7th October, 2010 at 10:41:35 -
Wow, you are completely right, it does work in an empty project.
I figured out what it is, it's actually 'Change resoulution mode' ticked for the application.
But thats strange cause in non hwa it works with that.
Code me a sausage!
|
|
|