Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Blue GUI Problems with the button control

Author
Message
Bob da reaper
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location:
Posted: 20th May 2006 19:30 Edited at: 21st May 2006 11:44
I've made the UI for my level editor but when i click any of the buttons it also comes up with the export code and export .x, i've been trying to fix this for hours can anyone spot something wrong?



I pwn n00bs - current project "Darkness Falls"
scapino
18
Years of Service
User Offline
Joined: 23rd Mar 2006
Location:
Posted: 20th May 2006 23:14
I think you want your button clicks under MOUSE_CLICK, not MENU_CLICK.


if eventtype() = MENU_CLICK and eventsource()= insertRoomButton
insert_room_dialog()
endif

ie...

if eventtype() = MENU_CLICK and eventsource() = insertFurnitureButton
insert_furniture_dialog()
endif
endfunction

should be...


if eventtype() = MENU_CLICK and eventsource()= insertRoomButton
insert_room_dialog()
endif

if eventtype() = MOUSE_CLICK and eventsource() = insertFurnitureButton
insert_furniture_dialog()
endif
endfunction

Kurt

Bob da reaper
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location:
Posted: 21st May 2006 11:40
ok i'll try that thanks for your help

I pwn n00bs - current project "Darkness Falls"
Bob da reaper
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location:
Posted: 21st May 2006 11:43
it doesn't work, looks like the error was just a typo, still comes up with the export.x and export code message, i've fixed the menu_click thing

I pwn n00bs - current project "Darkness Falls"
Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 21st May 2006 17:01
If you are using an U6 update for DBP then there is a new bug discovered which was posted somewhere else on the Dll Board.

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c
Bob da reaper
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location:
Posted: 22nd May 2006 18:34
no i'm using v5.5, i've upgraded to 6 and the poblem still continues

I pwn n00bs - current project "Darkness Falls"
Bob da reaper
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location:
Posted: 24th May 2006 18:47 Edited at: 24th May 2006 18:48
god i hate this problem

I pwn n00bs - current project "Darkness Falls"
Olby
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 24th May 2006 21:58
me too!

"Gangsters die, they don't go to heaven where angels fly!"
AMD Sempron 3.1+ Ghz, 512MB Ram, ATI R9550 256MB Ram, Sound Blaster Live!, WinXP SP2, DirectX 9.0c

Login to post a reply

Server time is: 2024-11-22 06:47:18
Your offset time is: 2024-11-22 06:47:18