|
3 registered members (AndrewAMD, Grant, Neb),
908
guests, and 6
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Panels
#114475
02/28/07 21:15
02/28/07 21:15
|
Joined: Jun 2006
Posts: 214 Germany, NRW
TheThinker
OP
Member
|
OP
Member
Joined: Jun 2006
Posts: 214
Germany, NRW
|
Hi, Is it possible to display ONE predefined panel several times? I want to create a "tileplotter" in 2d. What are the most improtant changes for panels from version 6.1 to 6.50  MfG, Patrick
|
|
|
Re: Panels
[Re: TheThinker]
#114476
03/01/07 06:28
03/01/07 06:28
|
Joined: Jun 2004
Posts: 2,234 Wisconsin USA
FoxHound
Expert
|
Expert
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
|
Not so easy no, you can use one bmap in several panels. You can create panels on the fly and display them all over the page, which is probably the most important panel update since 6.1.
--------------------- There is no signature here.
QUIT LOOKING FOR ONE!
|
|
|
Re: Panels
[Re: TheThinker]
#114478
03/01/07 21:00
03/01/07 21:00
|
Joined: Jul 2002
Posts: 4,436 Germany, Luebeck
Xarthor
Expert
|
Expert
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
|
Take a look at: pan_create() Example code: Code:
bmap my_bmap = <my_image.bmp>;
var panel_pointer[20];
function create_panels() { var i = 0; while(i < 20) { panel_pointer[i] = pan_create("bmap = my_bmap;", 1); i += 1; } }
EDIT: Forgot how to access thoses panel pointers which were stored in the array: Code:
panel* temp_pan;
function set_panel(_id,_x,_y) { temp_pan = panel_pointer[_id]; temp_pan.x = _x; temp_pan.y = _y; }
Last edited by Thunder; 03/01/07 21:04.
|
|
|
Re: Panels
[Re: Xarthor]
#114479
03/01/07 21:09
03/01/07 21:09
|
Joined: Jun 2006
Posts: 214 Germany, NRW
TheThinker
OP
Member
|
OP
Member
Joined: Jun 2006
Posts: 214
Germany, NRW
|
Ahh, thats greate. This is what i need. But it is hard to find in the manual. i was able find it only with the search function... Thank you, MfG Patrick
edit:
Oh, i have red the entry about pan_create. Isn't it Lite-C? Because C-Script is extra mentioned.
edit2:
Oh sorry, I was a little bit confused... It's c-script
Last edited by TheThinker; 03/01/07 21:34.
|
|
|
Re: Panels
[Re: TheThinker]
#114480
03/02/07 01:30
03/02/07 01:30
|
Joined: Jun 2004
Posts: 2,234 Wisconsin USA
FoxHound
Expert
|
Expert
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
|
"pan_create" offers a lot, you can create panels just the same as defining them in c-script, with buttons and sliders and anything else you want, you just have to plan it a bit better.
--------------------- There is no signature here.
QUIT LOOKING FOR ONE!
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|