Scripting/Squirrel/Client Functions/GUI::ScreenPosToWorld: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
Kennedyarz (talk | contribs) (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)) |
Kennedyarz (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
VectorScreen.rawnewmember("Width", GUI.GetScreenSize().X, null, true); | VectorScreen.rawnewmember("Width", GUI.GetScreenSize().X, null, true); |
Revision as of 22:50, 30 December 2016
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);