Alright so I created this Derma layout and had a friend test it for me. Obviously there are HUGE differences between mac/PC.
PC (How it's supposed to look)
[IMG]http://i42.tinypic.com/20uwfgh.png[/IMG]
Mac:
[img]http://i42.tinypic.com/xeol90.png[/img]
Any rhyme or reason?
Thanks.
Your friend wouldn't happen to play on a different resolution, would he?
[QUOTE=amkoc;33224426]Your friend wouldn't happen to play on a different resolution, would he?[/QUOTE]
Yep he was on a different resolution. Any way to fix it?
Can we see your code?
Here's the code for the panel
[lua]
-------------------------------------
-- Select Team Panel
---------------------------
local pTeam_Red
local pTeam
pTeam = vgui.Create('DFrame')
pTeam:SetSize(379, 400)
pTeam:SetPos(133, 96)
pTeam:SetTitle('Choose a Team')
pTeam:SetSizable(false)
pTeam:ShowCloseButton(false)
pTeam:SetDraggable(true)
pTeam:MakePopup()
pTeam:SetVisible(false)
pTeam_Red = vgui.Create('DImageButton')
pTeam_Red:SetSize(182, 182)
pTeam_Red:SetPos(5, 25)
pTeam_Red:SetImage('advantage/hud/derma/team_but.vtf')
pTeam_Red:SizeToContents()
pTeam_Red.DoClick = function() JoinTeamClick(1) end
pTeam_Red.DoRightClick = function() end
pTeam_Red:SetParent(pTeam)
pTeam_Red:SetColor(Color(255, 0, 0, 255))
pTeam_Red.OnCursorEntered = function(but) but:SetColor(Color(255, 120, 120, 255)) end
pTeam_Red.OnCursorExited = function(but) but:SetColor(Color(255, 0, 0, 255)) end
pTeam_Blue = vgui.Create('DImageButton')
pTeam_Blue:SetSize(182, 182)
pTeam_Blue:SetPos(192, 25)
pTeam_Blue:SetImage('advantage/hud/derma/team_but.vtf')
pTeam_Blue:SizeToContents()
pTeam_Blue.DoClick = function() JoinTeamClick(2) end
pTeam_Blue.DoRightClick = function() end
pTeam_Blue:SetParent(pTeam)
pTeam_Blue:SetColor(Color(0, 0, 255, 255))
pTeam_Blue.OnCursorEntered = function(but) if but:GetDisabled() then return else but:SetColor(Color(120, 120, 255, 255)) end end
pTeam_Blue.OnCursorExited = function(but) if but:GetDisabled() then return else but:SetColor(Color(0, 0, 255, 255)) end end
pTeam_Yellow = vgui.Create('DImageButton')
pTeam_Yellow:SetSize(182, 182)
pTeam_Yellow:SetPos(5, 212)
pTeam_Yellow:SetImage('advantage/hud/derma/team_but.vtf')
pTeam_Yellow:SizeToContents()
pTeam_Yellow.DoClick = function() JoinTeamClick(3) end
pTeam_Yellow.DoRightClick = function() end
pTeam_Yellow:SetParent(pTeam)
pTeam_Yellow:SetColor(Color(255, 255, 0, 255))
pTeam_Yellow.OnCursorEntered = function(but) if but:GetDisabled() then return else but:SetColor(Color(255, 255, 120, 255)) end end
pTeam_Yellow.OnCursorExited = function(but) if but:GetDisabled() then return else but:SetColor(Color(255, 255, 0, 255)) end end
pTeam_Green = vgui.Create('DImageButton')
pTeam_Green:SetSize(182, 182)
pTeam_Green:SetPos(192, 212)
pTeam_Green:SetImage('advantage/hud/derma/team_but.vtf')
pTeam_Green:SizeToContents()
pTeam_Green.DoClick = function() JoinTeamClick(4) end
pTeam_Green.DoRightClick = function() end
pTeam_Green:SetParent(pTeam)
pTeam_Green:SetColor(Color(0, 255, 0, 255))
pTeam_Green.OnCursorEntered = function(but) if but:GetDisabled() then return else but:SetColor(Color(120, 255, 120, 255)) end end
pTeam_Green.OnCursorExited = function(but) if but:GetDisabled() then return else but:SetColor(Color(0, 255, 0, 255)) end end
-- Setup disable/enable
function teamDisable(but)
MsgN("Disabling..")
but:SetDisabled(true)
but:SetColor(Color(0, 0, 0, 100))
end
function teamEnable(but)
MsgN("Enabling..")
but:SetDisabled(false)
but:OnCursorExited(but)
end
-- Setup hooks for Q menu
function GM:OnSpawnMenuOpen()
pTeam:SetVisible(true)
end
function GM:OnSpawnMenuClose()
pTeam:SetVisible(false)
end
[/lua]
Sorry to bump; kind of wondering how this issue slipped through garry's testing on mac.
Any fix at all?
Oh, and the derma worked just fine on another windows installation with a different resolution :P
[QUOTE=Qix;33333509]Sorry to bump; kind of wondering how this issue slipped through garry's testing on mac.
Any fix at all?
Oh, and the derma worked just fine on another windows installation with a different resolution :P[/QUOTE]
Mac tends to process Lua differently as far I concerned and can have Lua incompatibility.
[QUOTE=Jarrod;33334174]Mac tends to process Lua differently as far I concerned and can have Lua incompatibility.[/QUOTE]
This is a graphics issue and Lua, in its essence, shouldn't have anything to do with it. It's Garry's implementation of the graphics on lua that is having its issue. Is this a bug? Is there a place to submit a bug to the GMod developer(s)?
Sorry, you need to Log In to post a reply to this thread.