mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +00:00
init
This commit is contained in:
parent
b32f9cea77
commit
cd3fd49758
3 changed files with 40 additions and 0 deletions
29
src/Home/Yuugure.ZC
Executable file
29
src/Home/Yuugure.ZC
Executable file
|
@ -0,0 +1,29 @@
|
|||
I64 initialWinBottom = sys_task->win_bottom;
|
||||
CDoc *initialDisplayDoc = sys_task->display_doc;
|
||||
|
||||
U0 Yuugure()
|
||||
{
|
||||
// Hide SysLog
|
||||
if (sys_task->win_bottom != 0) {
|
||||
while(sys_task->win_bottom > -1){
|
||||
sys_task->win_bottom--;
|
||||
Sleep(20);
|
||||
}
|
||||
|
||||
sys_task->display_doc = NULL;
|
||||
WinBorder(OFF, sys_task);
|
||||
}
|
||||
// Show SysLog
|
||||
else {
|
||||
WinBorder(ON, sys_task);
|
||||
sys_task->display_doc = initialDisplayDoc;
|
||||
|
||||
while(sys_task->win_bottom != initialWinBottom){
|
||||
sys_task->win_bottom++;
|
||||
Sleep(20);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
WinZBufUpdate;
|
||||
}
|
|
@ -110,6 +110,16 @@ Bool MyPutKey(I64 ch, I64 sc)
|
|||
}
|
||||
return TRUE;
|
||||
|
||||
case SC_F12:
|
||||
if (!(sc & SCF_SHIFT))
|
||||
{
|
||||
if (sc & SCF_KEY_DESC)
|
||||
KeyDescSet("Cmd /Yuugure");
|
||||
else
|
||||
Yuugure;
|
||||
}
|
||||
return TRUE;
|
||||
|
||||
case SC_DELETE:
|
||||
if (sc & SCF_SHIFT)
|
||||
{
|
||||
|
|
|
@ -8,6 +8,7 @@ Cd(__DIR__);;
|
|||
#include "~/HomeWrappers"
|
||||
MapFileLoad("::/Kernel/Kernel");
|
||||
MapFileLoad("::/Compiler/Compiler");
|
||||
#include "~/Yuugure"
|
||||
#include "~/HomeKeyPlugIns"
|
||||
#include "~/HomeSys"
|
||||
Cd("..");;
|
||||
|
|
Loading…
Reference in a new issue