Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,731 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
panel in full screen #342270
09/26/10 00:43
09/26/10 00:43
Joined: Apr 2007
Posts: 21
B
Brahve Offline OP
Newbie
Brahve  Offline OP
Newbie
B

Joined: Apr 2007
Posts: 21
Hi everyone, how can I make panel I have with bmap 1920/1080 to be full screen in game. I try this:

panel.scale_x = screen_size.x/1920;
panel.scale_y = screen_size.y/1080;

But it is not working.

Re: panel in full screen [Re: Brahve] #342313
09/26/10 14:27
09/26/10 14:27
Joined: Apr 2007
Posts: 21
B
Brahve Offline OP
Newbie
Brahve  Offline OP
Newbie
B

Joined: Apr 2007
Posts: 21
Anyone?

There is nothing in manual online. I think this can be easy to do but nothing is there. Only how to make it scale to 10.

Re: panel in full screen [Re: Brahve] #342323
09/26/10 15:13
09/26/10 15:13
Joined: Nov 2008
Posts: 216
J
jane Offline
Member
jane  Offline
Member
J

Joined: Nov 2008
Posts: 216
have you set: pos_x = 0; pos_y = 0; ?
what is not working, position or scaling?

Re: panel in full screen [Re: jane] #342334
09/26/10 15:58
09/26/10 15:58
Joined: Apr 2007
Posts: 21
B
Brahve Offline OP
Newbie
Brahve  Offline OP
Newbie
B

Joined: Apr 2007
Posts: 21
I have no pos_x sett but I need to scale to full screen.
This is work when:

video_aspect = 1.777;
video_screen = 2;
video_mode = 6;
panel.scale_x = (screen_size.x) / 2150;
panel.scale_y = (screen_size.y) / 1470;

When I have 1920/1080 bmap panel but it is not good when I change resolution of the screen to not to be 6.

Re: panel in full screen [Re: Brahve] #342336
09/26/10 16:10
09/26/10 16:10
Joined: Apr 2007
Posts: 21
B
Brahve Offline OP
Newbie
Brahve  Offline OP
Newbie
B

Joined: Apr 2007
Posts: 21
It is not good when I change video_screen to 1 from 2. It is in up of screen with nothing under the panel.

It is strange because video play is in full screen. If panel can not be in full screen I can make video and play and not use panel? Can I use button in video like in YouTube?

Re: panel in full screen [Re: Brahve] #342339
09/26/10 16:16
09/26/10 16:16
Joined: Apr 2007
Posts: 21
B
Brahve Offline OP
Newbie
Brahve  Offline OP
Newbie
B

Joined: Apr 2007
Posts: 21
This is my all code:

#include <acknex.h>
#include <default.c>

BMAP* panel_bmap = "Meni.tga";

PANEL* gamepanel =
{
bmap = panel_bmap;
layer = 10;
}

function main()
{
video_aspect = 1.777;
video_screen = 2;
video_mode = 6;
gamepanel.scale_x = (screen_size.x) / 2150;
gamepanel.scale_y = (screen_size.y) / 1470;
gamepanel.flags = VISIBLE;
level_load("game.wmb");
}

Re: panel in full screen [Re: Brahve] #342340
09/26/10 16:24
09/26/10 16:24
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
It is almost impossible to understand what you want to achieve.
Why do you want to scale the panel when it is bigger than the resolution anyway?

If you want to play a video within the game then you don't need a panel:

From the online manual:
http://www.conitec.net/beta/amedia_play.htm
"target
C Pointer to a bmap that serves as target texture for the video stream, or NULL for playing the video in the whole engine window. Using a target texture, the video can be played on a model or sprite surface in the level."

Re: panel in full screen [Re: Pappenheimer] #342342
09/26/10 16:34
09/26/10 16:34
Joined: Apr 2007
Posts: 21
B
Brahve Offline OP
Newbie
Brahve  Offline OP
Newbie
B

Joined: Apr 2007
Posts: 21
No, I do not need video. I want video only if my panel can not be in all resolutions of the screen all visible. I want to make panel big or small if my resolution is big or small and to have my panel to fill screen. To be full visible every part of panel like I have with video.

When I play video like this:
media_play("Intro.wmv",NULL,100);

It is good because video is same if resolution is small or big. It is always full visible evry part of video. I want that with panel.

Re: panel in full screen [Re: Pappenheimer] #342344
09/26/10 16:43
09/26/10 16:43
Joined: Nov 2008
Posts: 216
J
jane Offline
Member
jane  Offline
Member
J

Joined: Nov 2008
Posts: 216
when the bmap is 1920x1080 write the fuction:

void splash_switch()
{
while(1)
{
wait(1);
gamepanel.scale_x = screen_size.x / 1920;
gamepanel.scale_y = screen_size.y / 1080;
wait(1);
}
}

and write in the main:

...
level_load("game.wmb");

wait(1);

splash_switch();
}





Last edited by jane; 09/26/10 17:09.
Re: panel in full screen [Re: jane] #342345
09/26/10 16:48
09/26/10 16:48
Joined: Sep 2009
Posts: 496
P
Progger Offline
Senior Member
Progger  Offline
Senior Member
P

Joined: Sep 2009
Posts: 496


asking is the best Way to get help laugh laugh laugh
Page 1 of 2 1 2

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1