Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 8 9 10 11 12 … 18 Next »
Function Request
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Function Request
06-08-2016, 03:42 AM, (This post was last modified: 06-08-2016, 03:51 AM by 4N0NYM.)
#1
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
Function Request
Hey a Small Suggestion;
could be there add a function for Highres so that the Screen first detect if the Player can see highres and then set it to Highres or Normal ?

not sure if that can be done.


i did Try it with this, but it didnt work :




--@name


function drawHighres()

--@highres
end



if CLIENT then


function Render()

render.clear()
render.setColor(255,255,255)

render.drawRect(256,256,150,150)
if render.getIsHighRes() == true then
render.setColor(255,0,0)
render.drawRect(256,256,150,150)
end


end


A,B = render.getScreenRes()

print(A,B)

if A > 1024 and B > 1024 then

drawHighres()

timer.create("drawScreen",1,1,function() hook("render","render",Render) end)
elseif A < 1024 and B < 1024 then

timer.create("drawScreen",1,1,function() hook("render","render",Render) end)
end


end
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Function Request - by 4N0NYM - 06-08-2016, 03:42 AM
RE: Function Request - by TheOneAndOnlyTee - 06-08-2016, 04:03 AM
RE: Function Request - by Knight - 06-08-2016, 10:45 AM
RE: Function Request - by Kosmos - 06-08-2016, 11:46 AM
RE: Function Request - by Person8880 - 06-08-2016, 03:18 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.