ULX

Author Topic: permission flags?  (Read 1760 times)

0 Members and 1 Guest are viewing this topic.

Offline nathan736

  • Full Member
  • ***
  • Posts: 143
  • Karma: 4
permission flags?
« on: March 22, 2013, 08:38:37 AM »
in the ulx groups menu theres checkboxes for stuff like show hidden echo ect is this hard coded or is there a way to add more for developers who code there own guis  to use non hard coded if v.candothis then  do this
a person asked me how to code lua and i said this " its like building a rocket up side down then  realizing you did it all wrong."

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: permission flags?
« Reply #1 on: March 22, 2013, 10:13:03 AM »
We try not to hard code anything in ULX in general.

To directly answer you, this is what you're looking for.
Experiencing God's grace one day at a time.

Offline nathan736

  • Full Member
  • ***
  • Posts: 143
  • Karma: 4
Re: permission flags?
« Reply #2 on: March 22, 2013, 11:46:48 AM »
thanks ;) is there a example for this ? 
so
ucl.registerAccess(   access,groups,comment,category   )
would become
ucl.registerAccess( dothis,superadmin,"lets people do this"," yoloswag" )
now how would i check if some one has access from this ?
« Last Edit: March 22, 2013, 12:21:03 PM by nathan736 »
a person asked me how to code lua and i said this " its like building a rocket up side down then  realizing you did it all wrong."

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: permission flags?
« Reply #3 on: March 22, 2013, 12:26:18 PM »
Why not look through ULX for examples? log.lua has some particularly simple usages of this and would answer your second question too.
Experiencing God's grace one day at a time.