Author Topic: Easiest way to position Derma panels?  (Read 3029 times)

0 Members and 1 Guest are viewing this topic.

Offline ErraticFox

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Easiest way to position Derma panels?
« on: January 25, 2014, 09:07:03 AM »
What would the best way to position buttons and such with Derma panels? Instead of just using a random position, loading in and checking it and then working off of that.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Easiest way to position Derma panels?
« Reply #1 on: January 25, 2014, 01:30:25 PM »
Make the variable for the panel global and update it using lua_run_cl.
Experiencing God's grace one day at a time.

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: Easiest way to position Derma panels?
« Reply #2 on: January 25, 2014, 01:32:23 PM »
Make the variable for the panel global and update it using lua_run_cl.

It would be nice if some one made a fancy in game menu creator/editor.
I cry every time I see that I am not a respected member of this community.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Easiest way to position Derma panels?
« Reply #3 on: January 26, 2014, 02:31:35 PM »
It would be nice if some one made a fancy in game menu creator/editor.

It has been done a few times before, they don't last very long. It's hard to make something truly generic enough.
Experiencing God's grace one day at a time.

Offline ErraticFox

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Easiest way to position Derma panels?
« Reply #4 on: January 28, 2014, 12:11:36 AM »
It has been done a few times before, they don't last very long. It's hard to make something truly generic enough.

Why don't they last long?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Easiest way to position Derma panels?
« Reply #5 on: January 28, 2014, 05:13:11 AM »
Due to the Law of Leaky Abstractions as well as the fact that a lot of the Gmod community is younger and inherently distrustful of anything they didn't code themselves.
Experiencing God's grace one day at a time.