Scripting/Squirrel/Client Functions/GUI::ScreenPosToWorld: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(VectorScreen.rawnewmember("Round", ::floor, null, true); VectorScreen.rawnewmember("Width", GUI.GetScreenSize().X, null, true); VectorScreen.rawnewmember("Height", GUI.GetScreenSize().Y, null, true); VectorScreen.rawnewmember("Relative", function(x, y))
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
VectorScreen.rawnewmember("Round", ::floor, null, true);
[http://forum.vc-mp.org/?topic=2752.0 GUI::ScreenPosToWorld]
 
 
 
 
 
 
 
 
 
 
 
 
VectorScreen.rawnewmember("Round", ::floor, null, true);
 
VectorScreen.rawnewmember("Width", GUI.GetScreenSize().X, null, true);
VectorScreen.rawnewmember("Height", GUI.GetScreenSize().Y, null, true);
 
VectorScreen.rawnewmember("Relative", function(x, y) {
    return VectorScreen(Round(x * Width), Round(y * Height));
}, null, true);

Latest revision as of 22:52, 30 December 2016