Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCoreModule.cs
More file actions
Latest commit
63 lines (56 loc) · 1.75 KB
/
Copy pathCoreModule.cs
File metadata and controls
63 lines (56 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
usingSystem;
usingMicrosoft.Xna.Framework;
usingMicrosoft.Xna.Framework.Graphics;
namespaceHacknet
{
// Token: 0x020000D6 RID: 214
internalclassCoreModule:Module
{
// Token: 0x0600044C RID: 1100 RVA: 0x00045479 File Offset: 0x00043679
publicCoreModule(Rectanglelocation,OSoperatingSystem):base(location,operatingSystem)
{
}
// Token: 0x0600044D RID: 1101 RVA: 0x00045494 File Offset: 0x00043694
publicoverridevoidLoadContent()
{
base.LoadContent();
if(CoreModule.LockSprite==null)
{
CoreModule.LockSprite=this.os.content.Load<Texture2D>("Lock");
}
}
// Token: 0x0600044E RID: 1102 RVA: 0x000454D4 File Offset: 0x000436D4
publicoverridevoidPreDrawStep()
{
base.PreDrawStep();
if(this.inputLocked)
{
this.guiInputLockStatus=GuiData.blockingInput;
GuiData.blockingInput=true;
}
}
// Token: 0x0600044F RID: 1103 RVA: 0x0004550C File Offset: 0x0004370C
publicoverridevoidPostDrawStep()
{
base.PostDrawStep();
if(this.inputLocked)
{
GuiData.blockingInput=false;
GuiData.blockingInput=this.guiInputLockStatus;
Rectanglebounds=this.bounds;
if(bounds.Contains(GuiData.getMousePoint()))
{
GuiData.spriteBatch.Draw(Utils.white,bounds,Color.Gray*0.5f);
Vector2position=newVector2((float)(bounds.X+bounds.Width/2-CoreModule.LockSprite.Width/2),(float)(bounds.Y+bounds.Height/2-CoreModule.LockSprite.Height/2));
GuiData.spriteBatch.Draw(CoreModule.LockSprite,position,Color.White);
}
}
}
// Token: 0x0400052B RID: 1323
privatestaticTexture2DLockSprite;
// Token: 0x0400052C RID: 1324
publicboolinputLocked=false;
// Token: 0x0400052D RID: 1325
privateboolguiInputLockStatus=false;
}
}