Пример #1
0
 private static UITextureAtlas.SpriteInfo[] CloseButton(int texWidth, int texHeight, Rect rect) => TextureHelper.GetSpritesInfo(texWidth, texHeight, rect, 32, 32, DeleteNormal, DeleteHover, DeletePressed).ToArray();
Пример #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();
Пример #3
0
 private static UITextureAtlas.SpriteInfo[] Resize(int texWidth, int texHeight, Rect rect) => TextureHelper.GetSpritesInfo(texWidth, texHeight, rect, ResizeSprite).ToArray();
Пример #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();
Пример #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();
Пример #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();
Пример #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();
Пример #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();
Пример #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();
Пример #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();
Пример #11
0
 static CommonTextures()
 {
     Atlas = TextureHelper.CreateAtlas(nameof(ModsCommon), Files);
 }