Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit98a2b0b

Browse files
update
1 parent1aa9907 commit98a2b0b

File tree

107 files changed

+243661
-241921
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+243661
-241921
lines changed

‎ebOSgui/Gui/images.cs‎

Lines changed: 8 additions & 0 deletions
Large diffs are not rendered by default.

‎ebOSgui/Kernel.cs‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
usingSystem.Threading;
1111
usingCosmos.System;
1212
usingSystem.Reflection;
13+
usingSystem.Net.Sockets;
1314

1415
namespaceebOS
1516
{
@@ -22,7 +23,7 @@ public class Kernel : Sys.Kernel
2223
privateconststringcryptver="1.0.0";
2324
privateconststringxoxver="1.0.0";
2425
//static
25-
26+
staticSys.Graphics.Pointbp=newSys.Graphics.Point(30,30);staticintbw=60;staticintbh=30;
2627

2728
protectedoverridevoidBeforeRun()
2829
{
@@ -38,6 +39,7 @@ protected override void BeforeRun()
3839

3940
Sys.MouseManager.X=(uint)((int)canvas.Mode.Columns/2);
4041
Sys.MouseManager.Y=(uint)((int)canvas.Mode.Rows/2);
42+
drawbutton();
4143
}
4244

4345
protectedoverridevoidRun()
@@ -80,16 +82,25 @@ static bool isclick(Sys.Graphics.Point point, int w, int h)
8082
staticvoiddrawscreen()
8183
{
8284
canvas.Clear(Color.Green);
85+
drawbutton();
8386
button();
8487
drawmouse();
8588
canvas.Display();
8689

8790
}
88-
staticvoidbutton()
91+
staticvoiddrawbutton()
8992
{
90-
Sys.Graphics.Pointbp=newSys.Graphics.Point(30,30);intbw=60;intbh=30;
93+
9194
Penblackpen=newPen(Color.Black);
92-
canvas.DrawRectangle(blackpen,bp,bw,bh);
95+
Penwhitepen=newPen(Color.White);
96+
canvas.DrawFilledRectangle(blackpen,bp,bw,bh);
97+
//canvas.DrawString("shutdown", whitepen,new Sys.Graphics.Fonts.PCScreenFont,new Sys.Graphics.Point(32, 32));
98+
//Bitmap shutdown = new Bitmap(120, 30, images.shutdown, ColorDepth.ColorDepth32);
99+
//canvas.DrawImage(shutdown, new Sys.Graphics.Point(32, 32));
100+
}
101+
staticvoidbutton()
102+
{
103+
93104
if(isclick(bp,bw,bh))
94105
{
95106
Sys.Power.Shutdown();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp