Forged Alliance Forever Forged Alliance Forever Forums 2016-05-18T21:21:28+02:00 /feed.php?f=2&t=12460 2016-05-18T21:21:28+02:00 2016-05-18T21:21:28+02:00 /viewtopic.php?t=12460&p=127178#p127178 <![CDATA[Re: a request for someone who went to FAF coding school]]> Statistics: Posted by Morax — 18 May 2016, 21:21


]]>
2016-05-17T21:55:12+02:00 2016-05-17T21:55:12+02:00 /viewtopic.php?t=12460&p=127124#p127124 <![CDATA[Re: a request for someone who went to FAF coding school]]>
however for that the moon must first explode or soon(tm) must arrive or sth

Statistics: Posted by Exotic_Retard — 17 May 2016, 21:55


]]>
2016-05-17T21:48:42+02:00 2016-05-17T21:48:42+02:00 /viewtopic.php?t=12460&p=127123#p127123 <![CDATA[Re: a request for someone who went to FAF coding school]]> Statistics: Posted by SeraphimLeftNut — 17 May 2016, 21:48


]]>
2016-05-17T21:02:37+02:00 2016-05-17T21:02:37+02:00 /viewtopic.php?t=12460&p=127120#p127120 <![CDATA[a request for someone who went to FAF coding school]]> -- Rewrites Button.HandleEvent to trigger OnClick when the mouse is clicked, not released.
-- Makes construction feel more responsive and fixes "dropped clicks".
function CustomHandleEvent(self, event)
local eventHandled = false

if event.Type == 'MouseEnter' then
if self.mAltToggledFlag then
self:SetTexture(self.mAltHighlight)
else
self:SetTexture(self.mHighlight)
end
self:OnRolloverEvent('enter')
self:Play()
if self.mRolloverCue then
local sound = Sound({Cue = self.mRolloverCue, Bank = "Interface",})
PlaySound(sound)
end
self.mMouseOver = true
eventHandled = true
elseif event.Type == 'MouseExit' then
if self.mAltToggledFlag then
self:SetTexture(self.mAltNormal)
else
self:SetTexture(self.mNormal)
end
self:OnRolloverEvent('exit')
self:Play()
self.mMouseOver = false
eventHandled = true
elseif event.Type == 'ButtonPress' or event.Type == 'ButtonDClick' then
self:OnClick(event.Modifiers)
if self.mClickCue then
local sound = Sound({Cue = self.mClickCue, Bank = "Interface",})
PlaySound(sound)
end
self:Play()
eventHandled = true
end

return eventHandled
end

taken from azui mod

Statistics: Posted by SeraphimLeftNut — 17 May 2016, 21:02


]]>