mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-25 06:02:29 -04:00
Launcher: add an awful options button image.
This commit is contained in:
parent
01339e8172
commit
8e74cbfb38
@ -13,7 +13,7 @@ namespace Launcher.Gui.Views {
|
||||
const int buttonWidth = 220, buttonHeight = 35, sideButtonWidth = 150;
|
||||
|
||||
public MainView( LauncherWindow game ) : base( game ) {
|
||||
widgets = new Widget[13];
|
||||
widgets = new Widget[14];
|
||||
}
|
||||
|
||||
public override void Init() {
|
||||
@ -90,6 +90,10 @@ namespace Launcher.Gui.Views {
|
||||
.SetLocation( Anchor.Centre, Anchor.Centre, 250, -20 );
|
||||
widgets[sslIndex].Visible = sslVisible;
|
||||
widgets[sslIndex + 1].Visible = sslVisible;
|
||||
|
||||
Makers.Bitmap( this, Bitmaps.OptionsIndices,
|
||||
Bitmaps.OptionsPalette, Bitmaps.OptionsSize )
|
||||
.SetLocation( Anchor.BottomOrRight, Anchor.LeftOrTop, -5, 5 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -108,6 +108,7 @@
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Updater\Scripts.cs" />
|
||||
<Compile Include="Updater\Applier.cs" />
|
||||
<Compile Include="Utils\Bitmaps.cs" />
|
||||
<Compile Include="Utils\Client.cs" />
|
||||
<Compile Include="Utils\ErrorHandler.cs" />
|
||||
<Compile Include="Utils\JSON.cs" />
|
||||
|
51
Launcher2/Utils/Bitmaps.cs
Normal file
51
Launcher2/Utils/Bitmaps.cs
Normal file
@ -0,0 +1,51 @@
|
||||
// ClassicalSharp copyright 2014-2016 UnknownShadow200 | Licensed under MIT
|
||||
using System;
|
||||
using ClassicalSharp;
|
||||
|
||||
namespace Launcher {
|
||||
|
||||
internal static class Bitmaps {
|
||||
|
||||
public static int OptionsSize = 32;
|
||||
|
||||
public static byte[] OptionsIndices = new byte[] {
|
||||
0x00, 0x00, 0x00, 0x00, 0x01, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x10, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x01, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x10, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x10, 0x02, 0x20, 0x01, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x01, 0x11, 0x11, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x11, 0x11, 0x10, 0x00, 0x00,
|
||||
0x00, 0x00, 0x11, 0x11, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x11, 0x11, 0x00, 0x00,
|
||||
0x00, 0x01, 0x11, 0x10, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x01, 0x11, 0x10, 0x00,
|
||||
0x00, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x11, 0x11, 0x00,
|
||||
0x01, 0x11, 0x10, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x01, 0x11, 0x10,
|
||||
0x01, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x10,
|
||||
0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x11,
|
||||
0x11, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x11,
|
||||
0x11, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x11,
|
||||
0x11, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11,
|
||||
0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11,
|
||||
0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11,
|
||||
0x11, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x11,
|
||||
0x11, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x11,
|
||||
0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11,
|
||||
0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11,
|
||||
0x11, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11,
|
||||
0x11, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x11,
|
||||
0x11, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x11,
|
||||
0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x11,
|
||||
0x01, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x10,
|
||||
0x01, 0x11, 0x10, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x01, 0x11, 0x10,
|
||||
0x00, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x11, 0x11, 0x00,
|
||||
0x00, 0x01, 0x11, 0x10, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x01, 0x11, 0x10, 0x00,
|
||||
0x00, 0x00, 0x11, 0x11, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x11, 0x11, 0x10, 0x00,
|
||||
0x00, 0x00, 0x01, 0x11, 0x11, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x11, 0x11, 0x11, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x00, 0x02, 0x20, 0x00, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x01, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x10, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x01, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x10, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
|
||||
public static FastColour[] OptionsPalette = new FastColour[] {
|
||||
new FastColour( 0, 0, 0, 0 ), new FastColour( 255, 255, 255 ),
|
||||
new FastColour( 225, 225, 225 ),
|
||||
};
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user