Browse Source

Fixed bad fonting - crude start is working 100%

master
4 years ago
parent
commit
d238faae33
2 changed files with 700 additions and 509 deletions
  1. 690
    499
      DevilMayCry4SpecialEdition.CT
  2. 10
    10
      luas/d3dmenu.lua

+ 690
- 499
DevilMayCry4SpecialEdition.CT
File diff suppressed because it is too large
View File


+ 10
- 10
luas/d3dmenu.lua View File

@@ -11,7 +11,7 @@ function init_options()
txtstatus = "OFF"
end
Option1 = hook.createTextContainer(fmap, 0, 50,
"Disable Camera Events:\t\t"..txtstatus)
"Disable Camera Events: "..txtstatus)
opt2 = 'Auto-Skip Cutscenes (Checking This Enables Everything Under This Section)'
Option2State = addresses.getMemoryRecordByDescription(opt2).Active
@@ -21,7 +21,7 @@ function init_options()
txtstatus = "OFF"
end
Option2 = hook.createTextContainer(fmap, 0, 50+txtheight,
"Auto-Skip Cutscenes:\t\t..txtstatus")
"Auto-Skip Cutscenes: "..txtstatus)
opt3 = 'Disable Bloody Palace Timer'
Option3State = addresses.getMemoryRecordByDescription(opt3).Active
@@ -31,7 +31,7 @@ function init_options()
txtstatus = "OFF"
end
Option3 = hook.createTextContainer(fmap, 0, 50+txtheight*2,
"Disable Timer:\t\t"..txtstatus)
"Disable Timer: "..txtstatus)
end
function createD3Dmenu()
@@ -44,7 +44,7 @@ function createD3Dmenu()
bitmap.setHeight(1)
bitmap.setWidth(1)
canvas = bitmap.getCanvas()
canvas.setPixel(0,0, 0xffffff) --Place black pixel at the center.
canvas.setPixel(0,0, 0xffffff) --White overlay
bgtexture = hook.createTexture(background)
bgsprite = hook.createSprite(bgtexture)
bgsprite.Width = 200
@@ -61,7 +61,7 @@ function createD3Dmenu()
bitmap.setHeight(1)
bitmap.setWidth(1)
canvas = bitmap.getCanvas()
canvas.setPixel(0,0, 0x003333) --Place dark blue at the center.
canvas.setPixel(0,0, 0x9FB4BA) --highlight color
hltexture = hook.createTexture(highlight)
hlsprite = hook.createSprite(hltexture)
hlsprite.Visible = false --not yet
@@ -85,7 +85,7 @@ function execute_selected()
else
toggle = "OFF"
end
Option1.Text = "Disable Camera Events:\t\t"..toggle
Option1.Text = "Disable Camera Events: "..toggle
elseif (selected_option == 2) then
Option2State = not Option2State
addresses.getMemoryRecordByDescription(opt2).Active = Option2State
@@ -94,16 +94,16 @@ function execute_selected()
else
toggle = "OFF"
end
Option2.Text = "Auto-Skip Cutscenes:\t\t"..toggle
Option2.Text = "Auto-Skip Cutscenes: "..toggle
elseif (selected_option == 3) then
Option3State = not Option2State
Option3State = not Option3State
addresses.getMemoryRecordByDescription(opt3).Active = Option3State
if (Option3State) then
toggle = "ON"
else
toggle = "OFF"
end
Option3.Text = "Disable Timer:\t\t"..toggle
Option3.Text = "Disable Timer: "..toggle
end
end
@@ -163,4 +163,4 @@ function destroyD3Dmenu()
fmap.destroy()
font.destroy()
canvas.destroy()
end
end

Loading…
Cancel
Save