Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-05-2012, 06:38 AM
greggiles greggiles is offline
Registered User
greggiles's Avatar
Join Date: Sep 2007
Posts: 149
greggiles has a spectacular aura about
Zoom adjusted by screensize

My goal: Have a constant view area around player no matter the size of the screen.

1st Attempt: I made an Img appear that's height and width was set determined by the screenwidth/screenheight.

Problem: couldn't see chat bar..and the black is ugly

2nd Attemp:
PHP Code:
function onTimeOut() {
 
setTimer(0.05);
 
this.controlWidth 600;
 
this.controlHeight 550;
 
with(GraalControl){
  
x=screenwidth/2;
  
y=screenheight/2;
  
width=thiso.controlWidth;
  
height=thiso.controlHeight;
 } 
Problem: It wouldn't center right, had to restart client before getting on another server to reset the black border, and once again, black is ugly...

Solution IDEASo I had this idea. A function that zooms everything determined on the screen size. Of what I heard There are some commands like camerabounds and camerasize but they are totally undocumented.

Thoughts?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.