Re: RayGUI Example

new topic     » goto parent     » topic index » view thread      » older message » newer message
andreasWagner said...
Icy_Viking said...

Alright, still can't figure out why none of the values are changing even though I basically made a euphoria version of portable_window.c

Hallo

little late, but better late than never. textformat() seems to be the culprit. Calling the function seems to be a little more complex due to variable arguments. But you don't need it. It calls sprintf internally. That exists in Euphoria Native.

Just use that:

DrawText(sprintf("Mouse: [%d, %d]",mousePos[1]+mousePos[2]),10,40,10,DARKGRAY) 
DrawText(sprintf("Win: [%d, %d]",windowPos[1]+windowPos[2]),10,60,10,DARKGRAY)  

instead of that:

DrawText(TextFormat("Mouse: [%f, %f]",mousePos[1]+mousePos[2]),10,40,10,DARKGRAY) 
DrawText(TextFormat("Win: [%f, %f]",windowPos[1]+windowPos[2]),10,60,10,DARKGRAY)	 

Hope that helps.

[/quote]

Hey, I just saw this. Thanks, it works! The solution was more simple then I thought it'd be.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu