Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Commit

Permalink
部署
Browse files Browse the repository at this point in the history
  • Loading branch information
buger404 committed Jul 7, 2019
1 parent 7e5f4fb commit 736c946
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 22 deletions.
Binary file modified Builder.exe
Binary file not shown.
34 changes: 17 additions & 17 deletions Core/GCore.bas
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Attribute VB_Name = "GCore"
End Type
Public Type AssetsTree
files() As GMem
path As String
Path As String
arg1 As Variant
arg2 As Variant
End Type
Expand Down Expand Up @@ -104,7 +104,7 @@ Attribute VB_Name = "GCore"
Public FPSWarn As Long
Public EmeraldInstalled As Boolean
Public BassInstalled As Boolean
Public Const Version As Long = 19070608 'hhhhhhhhxxxhhhhhhhhffff
Public Const Version As Long = 19070706 'hhhhhdfgdfhhhxxxhhhhhhhhffff
Public TextHandle As Long, WaitChr As String

Public AssetsTrees() As AssetsTree
Expand Down Expand Up @@ -133,9 +133,9 @@ Attribute VB_Name = "GCore"
strBuf = Left(strBuf, InStr(strBuf, Chr(0)))
ReadINI = strBuf
End Function
Public Sub OutPutDebug(str As String)
Open App.path & "\debug.txt" For Append As #1
Print #1, Now & " " & str
Public Sub OutPutDebug(Str As String)
Open App.Path & "\debug.txt" For Append As #1
Print #1, Now & " " & Str
Close #1
End Sub
'================================================================================
Expand Down Expand Up @@ -281,8 +281,8 @@ sth:

GetWinNTVersion = Left(strOSversion, 3)
End Function
Public Sub BlurTo(DC As Long, srcDC As Long, buffWin As Form, Optional radius As Long = 60)
Dim i As Long, G As Long, e As Long, b As BlurParams, w As Long, h As Long
Public Sub BlurTo(DC As Long, srcDC As Long, buffWin As Form, Optional Radius As Long = 60)
Dim i As Long, g As Long, e As Long, b As BlurParams, w As Long, h As Long
'粘贴到缓冲窗口
buffWin.AutoRedraw = True
BitBlt buffWin.hdc, 0, 0, GW, GH, srcDC, 0, 0, vbSrcCopy: buffWin.Refresh
Expand All @@ -291,22 +291,22 @@ sth:
GdipCreateBitmapFromHBITMAP buffWin.Image.handle, buffWin.Image.hpal, i

'模糊操作
PoolCreateEffect2 GdipEffectType.Blur, e: b.radius = radius: GdipSetEffectParameters e, b, LenB(b)
PoolCreateEffect2 GdipEffectType.Blur, e: b.Radius = Radius: GdipSetEffectParameters e, b, LenB(b)
GdipGetImageWidth i, w: GdipGetImageHeight i, h
GdipBitmapApplyEffect i, e, NewRectL(0, 0, w, h), 0, 0, 0

'画~
PoolCreateFromHdc DC, G
GdipDrawImage G, i, 0, 0
PoolDisposeImage i: PoolDeleteGraphics G: PoolDeleteEffect e '垃圾处理
PoolCreateFromHdc DC, g
GdipDrawImage g, i, 0, 0
PoolDisposeImage i: PoolDeleteGraphics g: PoolDeleteEffect e '垃圾处理
buffWin.AutoRedraw = False
End Sub
Public Sub BlurImg(img As Long, radius As Long)
Public Sub BlurImg(img As Long, Radius As Long)
Dim b As BlurParams, e As Long, w As Long, h As Long

'模糊操作

PoolCreateEffect2 GdipEffectType.Blur, e: b.radius = radius: GdipSetEffectParameters e, b, LenB(b)
PoolCreateEffect2 GdipEffectType.Blur, e: b.Radius = Radius: GdipSetEffectParameters e, b, LenB(b)
GdipGetImageWidth img, w: GdipGetImageHeight img, h
GdipBitmapApplyEffect img, e, NewRectL(0, 0, w, h), 0, 0, 0

Expand Down Expand Up @@ -443,10 +443,10 @@ sth:
AssetsTrees(UBound(AssetsTrees)).arg1 = arg1
AssetsTrees(UBound(AssetsTrees)).arg2 = arg2
End Function
Public Function FindAssetsTree(path As String, arg1 As Variant, arg2 As Variant) As Integer
Public Function FindAssetsTree(Path As String, arg1 As Variant, arg2 As Variant) As Integer
On Error Resume Next
For i = 1 To UBound(AssetsTrees)
If AssetsTrees(i).path = path And AssetsTrees(i).arg1 = arg1 And AssetsTrees(i).arg2 = arg2 Then
If AssetsTrees(i).Path = Path And AssetsTrees(i).arg1 = arg1 And AssetsTrees(i).arg2 = arg2 Then
If Err.Number <> 0 Then
Err.Clear
Else
Expand All @@ -455,9 +455,9 @@ sth:
End If
Next
End Function
Public Function GetAssetsTree(path As String) As AssetsTree
Public Function GetAssetsTree(Path As String) As AssetsTree
For i = 1 To UBound(AssetsTrees)
If AssetsTrees(i).path = path Then GetAssetsTree = AssetsTrees(i): Exit For
If AssetsTrees(i).Path = Path Then GetAssetsTree = AssetsTrees(i): Exit For
Next
End Function
'========================================================
2 changes: 1 addition & 1 deletion Core/ResPool.bas
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Public Sub PoolCreateFont(fam As Long, ByVal size As Single, style As FontStyle,
gdiplus.GdipCreateFont fam, size, style, unit, Font
PoolAddFont Font
End Sub
Public Sub PoolCreateEffect(eff As GdipEffectType, Effect As Long)
Public Sub PoolCreateEffect2(eff As GdipEffectType, Effect As Long)
gdiplus.GdipCreateEffect2 eff, Effect
PoolAddEffect Effect
End Sub
Expand Down
Empty file removed Emerald.exe
Empty file.
5 changes: 2 additions & 3 deletions Emerald.vbw
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ EmeraldWindow = 192, 192, 880, 669, , 160, 160, 848, 637, C
GSysPage = 224, 224, 912, 701,
Core = 128, 128, 784, 659,
AboutMe = 0, 0, 656, 531,
aShadow = 96, 96, 848, 472,
GResource = 160, 160, 880, 590,
AeroEffect = 32, 32, 784, 408,
Process = -179, 145, 573, 512,
Expand All @@ -30,6 +29,6 @@ UpdatePage = 160, 160, 913, 536,
SetupPackage = 76, 76, 1061, 505,
SpecialDirs = 76, 76, 1060, 499,
Animations = 96, 96, 849, 472,
GCrashBox = 192, 192, 913, 615, Z
GCrashBox = 192, 192, 913, 615,
Gdiplus = 0, 0, 955, 411,
ResPool = 192, 192, 1147, 603,
ResPool = 192, 192, 1147, 603, Z
2 changes: 1 addition & 1 deletion Version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19070608
19070706

0 comments on commit 736c946

Please sign in to comment.