|
|
Problem:Mouse offset on y axis over button
#170890
12/03/07 21:24
12/03/07 21:24
|
Joined: Dec 2006
Posts: 434 UK,Terra, SolarSystem, Milky W...
pararealist
OP
Senior Member
|
OP
Senior Member
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
|
Hi, Has anyone got this problem? Gamestudio A7.06.1 I don’t know if anyone is experiencing this problem? The mouse click/over on buttons in panels seem to have an offset on the Y axis. The X axis is fine. This is where the button is activated from below. http://pararealist.pa.funpic.de/test2.html And where it deactivates, right in the middle of the button. It seems the offset is about half the size of the button below the button. I am using window size of 800x600 and panels for this size screen.
A8.3x Commercial, AcknexWrapper and VS 2010 Express ○pararealist now.
|
|
|
Re: Problem:Mouse offset on y axis over button
[Re: Ottawa]
#170892
12/06/07 12:11
12/06/07 12:11
|
Joined: Dec 2006
Posts: 434 UK,Terra, SolarSystem, Milky W...
pararealist
OP
Senior Member
|
OP
Senior Member
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
|
Yes, the bitmap for the panel is at 0,0. panel is at 0,0
The button positions are inside the panel.
PANEL CODE:
PANEL* pAnimEditPanel = { pos_x = 0; pos_y = 0; // bmap = animedit_pcx; // hslider (0,405,608,scrollbar_pcx,0,11000,aSlider1_val); // button_radio = 10,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; button_radio = 90,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; button_radio = 170,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; button_radio = 250,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; button_radio = 330,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; button_radio = 410,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; button_radio = 490,460,animclipson_pcx,animclips_pcx,animclipsov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; // // Clip load save del button = 566,454,cliploadon_pcx,clipload_pcx,cliploadov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; button = 565,482,clipsaveon_pcx,clipsave_pcx,clipsaveov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; button = 565,507,clipdelon_pcx,clipdel_pcx,clipdelov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; // digits(530,430,"%s\n",dungeon14_fnt,1,aHoverButton_str); // digits(148,430," %02.2f\n",dungeon16_fnt,1,aCurMarkerStart); // No 11 button = 123,427,clippos_pcx,clippos_pcx,clippos_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; // clip set start marker 12 button = 190 427,clipmarkeron_pcx,clipmarker_pcx,clipmarkerov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; // clip delete 13 button = 225,427,clipdeleteon_pcx,clipdelete_pcx,clipdeleteov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; // digits(285,430," %02.2f\n",dungeon16_fnt,1,aCurAnimCur); // No 14 button = 258,427,clippos_pcx,clippos_pcx,clippos_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; // clip insert 15 button = 330,427,clipinserton_pcx,clipinsert_pcx,clipinsertov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; // clip set end marker // 16 button = 363 427,clipmarkeron_pcx,clipmarker_pcx,clipmarkerov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; // end marker digits(418,430," %02.2f\n",dungeon16_fnt,1,aCurMarkerEnd); // No 17 - cur pos button = 393,427,clippos_pcx,clippos_pcx,clippos_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; // digits(585,537," %s\n",dungeon14_fnt,1, clipnum_str); // event = fDoClickOnPanel; // layer = 2; flags = CENTER_X | CENTER_Y | OVERLAY ; // on_click = fDoAnimEditPanel; }
If you can see something wrong please let me know.
A8.3x Commercial, AcknexWrapper and VS 2010 Express ○pararealist now.
|
|
|
Re: Problem:Mouse offset on y axis over button
[Re: pararealist]
#170893
12/06/07 23:59
12/06/07 23:59
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
User
|
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi! There are at least two situations where a comma is missing Code:
button = 190 , 427,clipmarkeron_pcx,clipmarker_pcx,clipmarkerov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; // clip delete 13 and Code:
button = 363 , 427,clipmarkeron_pcx,clipmarker_pcx,clipmarkerov_pcx,fDoAnimEditPanel,fDoAnimEditPanelOff,fDoAnimEditPanelOver; // end marker
edit : I have a question about the following two lines event = fDoClickOnPanel; on_click = fDoAnimEditPanel; I would put them in another function I saw that material can call an event this way but I wasn't aware that panels could do this.
Last edited by Ottawa; 12/07/07 00:25.
Hope this helps! Ottawa  Ver 7.86.2 Pro and Lite-C
|
|
|
Re: Problem:Mouse offset on y axis over button
[Re: Ottawa]
#170894
12/07/07 01:56
12/07/07 01:56
|
Joined: Dec 2006
Posts: 434 UK,Terra, SolarSystem, Milky W...
pararealist
OP
Senior Member
|
OP
Senior Member
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
|
My keyboard is giving me problems sometimes. It switches to insert mode, and i sometimes delete a letter or so.
But SED did not complain in the panel description with the two commas missing.
But the problem is still there after adding the commas.
It is new for the t7 templates A7.06.1 but i even commented that out, just in case, same problem.
I will create a simple level with a panel and button to see if this is a general problem or just with this project.
Thanks.
A8.3x Commercial, AcknexWrapper and VS 2010 Express ○pararealist now.
|
|
|
|