Ludeon Forums

RimWorld => Mods => Help => Topic started by: mrofa on April 29, 2015, 07:55:39 AM

Title: [Help]One to rule them all
Post by: mrofa on April 29, 2015, 07:55:39 AM
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
Title: Re: [Help]One to rule them all
Post by: BBream on April 29, 2015, 09:57:55 AM
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);
    }
Title: Re: [Help]One to rule them all
Post by: 1000101 on April 29, 2015, 02:04:04 PM
The EdB Interface may be a good place to look.  Doesn't it allow that for hunting and hauling?