Re: Dev Diary



This stuff is bizarre...
Latest release, log of changes and documentation
Posts: 1295
Joined: Sat May 31, 2014 12:35 pm
Posts: 266
Joined: Wed Apr 09, 2014 3:37 pm
If widget_gadget
If(active_gadget)
mousetrap:|ON_INTERFACE
mc = active_gadget.mc
active_gadget.color[3]= 0.75-0.8
If(mdown1)
If(active_gadget.trap_pos.x=0) Then active_gadget.init_adjustment(vec2d.Create(m_pos.x,m_pos.y))
active_gadget.adjust_value(vec2d.Create(m_pos.x,m_pos.y))
Else
active_gadget.trap_pos.x=0
active_gadget=Null
EndIf
Else
mousetrap:&($ffff - ON_INTERFACE)
EndIf
If Not (mousetrap & (ON_COLOR | ON_MIDPOINT | ON_ALPHA) Or active_gadget)
If Not(mousetrap&ON_INTERFACE)
Local mp:vec2d = vec2d.Create((m_pos.x-(client_w-500))/(460),(m_pos.y-380)/(380))
If ((mp.length()>1.03 And m_pos.x>(client_w-500.0) And m_pos.y<380.0) Or m_pos.x>(client_w-135)) Then mousetrap:|ON_INTERFACE; mc=2
End If
If(widget_gadget.mouse(vec2d.Create(m_pos.x,m_pos.y)))
mc=widget_gadget.mc
parameter_display=widget_gadget.name
parameter_display_value = widget_gadget.display_value()
current_gadget=widget_gadget
current_gadget.hover = True
If(current_gadget.active) active_gadget = current_gadget
mousetrap:|ON_INTERFACE
Else
widget_gadget.hover = False
EndIf
EndIf
End If
Posts: 266
Joined: Wed Apr 09, 2014 3:37 pm
Posts: 17
Joined: Fri Oct 03, 2014 7:13 am
Posts: 1903
Joined: Sun Mar 23, 2014 1:48 pm
Users browsing this forum: No registered users and 1 guest