Exemplo n.º 1
0
 private static UITextureAtlas.SpriteInfo[] CloseButton(int texWidth, int texHeight, Rect rect) => TextureHelper.GetSpritesInfo(texWidth, texHeight, rect, 32, 32, DeleteNormal, DeleteHover, DeletePressed).ToArray();
Exemplo n.º 2
0
 private static UITextureAtlas.SpriteInfo[] CommonHeaderButtons(int texWidth, int texHeight, Rect rect) => TextureHelper.GetSpritesInfo(texWidth, texHeight, rect, 25, 25, new RectOffset(4, 4, 4, 4), 2, HeaderAdditional).ToArray();
Exemplo n.º 3
0
 private static UITextureAtlas.SpriteInfo[] Resize(int texWidth, int texHeight, Rect rect) => TextureHelper.GetSpritesInfo(texWidth, texHeight, rect, ResizeSprite).ToArray();
Exemplo n.º 4
0
 private static UITextureAtlas.SpriteInfo[] HeaderHover(int texWidth, int texHeight, Rect rect) => TextureHelper.GetSpritesInfo(texWidth, texHeight, rect, new RectOffset(4, 4, 4, 4), 0, HeaderHoverSprite).ToArray();
Exemplo n.º 5
0
 private static UITextureAtlas.SpriteInfo[] OpacitySlider(int texWidth, int texHeight, Rect rect) => TextureHelper.GetSpritesInfo(texWidth, texHeight, rect, 18, 200, new RectOffset(), 2, OpacitySliderBoard, OpacitySliderColor).ToArray();
Exemplo n.º 6
0
 private static UITextureAtlas.SpriteInfo[] ColorPicker(int texWidth, int texHeight, Rect rect) => TextureHelper.GetSpritesInfo(texWidth, texHeight, rect, 43, 49, ColorPickerNormal, ColorPickerHover, ColorPickerDisable, ColorPickerColor, ColorPickerBoard).ToArray();
Exemplo n.º 7
0
 private static UITextureAtlas.SpriteInfo[] Empty(int texWidth, int texHeight, Rect rect) => TextureHelper.GetSpritesInfo(texWidth, texHeight, rect, 28, 28, new RectOffset(2, 2, 2, 2), 2, EmptySprite).ToArray();
Exemplo n.º 8
0
 private static UITextureAtlas.SpriteInfo[] DefaultTabButtons(int texWidth, int texHeight, Rect rect) => TextureHelper.GetSpritesInfo(texWidth, texHeight, rect, 58, 25, new RectOffset(4, 4, 4, 0), 2, TabNormal, TabHover, TabPressed, TabFocused, TabDisabled).ToArray();
Exemplo n.º 9
0
 private static UITextureAtlas.SpriteInfo[] TabButton(int texWidth, int texHeight, Rect rect) => TextureHelper.GetSpritesInfo(texWidth, texHeight, rect, new RectOffset(4, 4, 4, 0), 1, Tab).ToArray();
Exemplo n.º 10
0
 private static UITextureAtlas.SpriteInfo[] TextFieldPanel(int texWidth, int texHeight, Rect rect)
 => TextureHelper.GetSpritesRowsInfo(texWidth, texHeight, rect, 32, 32, new RectOffset(4, 4, 4, 4), 2, 4,
                                     FieldNormal, FieldHovered, FieldFocused, FieldDisabled,
                                     FieldNormalLeft, FieldHoveredLeft, FieldFocusedLeft, FieldDisabledLeft,
                                     FieldNormalRight, FieldHoveredRight, FieldFocusedRight, FieldDisabledRight,
                                     FieldNormalMiddle, FieldHoveredMiddle, FieldFocusedMiddle, FieldDisabledMiddle).ToArray();
Exemplo n.º 11
0
 static CommonTextures()
 {
     Atlas = TextureHelper.CreateAtlas(nameof(ModsCommon), Files);
 }