[Help]One to rule them all

Started by mrofa, April 29, 2015, 07:55:39 AM

Previous topic - Next topic

mrofa

So i was wondering if any one knows how do power button works with multi select, since my goal is to make similar button but i kinda stuck on that multi select part :P
All i do is clutter all around.

BBream

#1
I think this is key method for your problem.

In Class Command:

    public override bool GroupsWith(Gizmo other)
    {
      Command command = other as Command;
      return command != null && (this.hotKey == command.hotKey && this.defaultLabel == command.defaultLabel && (Object) this.icon == (Object) command.icon || this.groupKey != 0 && command.groupKey != 0 && this.groupKey == command.groupKey);
    }

1000101

The EdB Interface may be a good place to look.  Doesn't it allow that for hunting and hauling?
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By