SS13 Criminal Record Icon Location REAL
Adds a new Offset DataField to the StatusIcon Prototype. It effects status icon location on a per-pixel level. Not sure what else it could be used for, but hey, nothing wrong with generalizing. Also moves the mindshield icon priority to one, to fix an unreported bug with them covering non-job icons.
accOffsetL += texture.Height;
countL++;
}
- yOffset = (bounds.Height + sprite.Offset.Y) / 2f - (float) accOffsetL / EyeManager.PixelsPerMeter;
+ yOffset = (bounds.Height + sprite.Offset.Y) / 2f - (float) (accOffsetL - proto.Offset) / EyeManager.PixelsPerMeter;
xOffset = -(bounds.Width + sprite.Offset.X) / 2f;
}
accOffsetR += texture.Height;
countR++;
}
- yOffset = (bounds.Height + sprite.Offset.Y) / 2f - (float) accOffsetR / EyeManager.PixelsPerMeter;
+ yOffset = (bounds.Height + sprite.Offset.Y) / 2f - (float) (accOffsetR - proto.Offset) / EyeManager.PixelsPerMeter;
xOffset = (bounds.Width + sprite.Offset.X) / 2f - (float) texture.Width / EyeManager.PixelsPerMeter;
}
/// </summary>
[DataField]
public StatusIconLayer Layer = StatusIconLayer.Base;
+
+ /// <summary>
+ /// Offset of the status icon, up and down only.
+ /// </summary>
+ [DataField]
+ public int Offset = 0;
}
/// <summary>
- type: statusIcon
id: SecurityIcon
abstract: true
- priority: 1
- locationPreference: Left
+ priority: 2
+ offset: 1
+ locationPreference: Right
- type: statusIcon
parent: SecurityIcon
- type: statusIcon
id: MindShieldIcon
- priority: 2
+ priority: 1
locationPreference: Right
layer: Mod
icon: