Código:
include "lib.asm"
;W580 SW-R8BE001
;change menu "Capture Mode"
;put in Activity menu Style the Menu "capture Mode" for Video and Photo
;Add icon in title
;changue item style
;and restore ability to select items whit numbers keys
;remove Softkeys, remove Background and restore Softkeys,Background.
;coment or remove ";" for set it
;(c) albertnet3
;V1.1
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
org 0x45007486
ldr R3, _NewCode
bx R3
align 4
_NewCode dw NewCode+1
back:
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
org 0x45006CF0
ldr R3, _NewCode1
bx R3
_NewCode1 dw NewCode1+1
back1:
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
;xxxxxxxxxxxxxNEW CODExxxxxxxxxxxxxxxxxxxxxxxx
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
org 0x45DD9200
NewCode:
ldr R1, dword_title
ldr R5, dword_FFFF
bl a_SetTitleText
ldr R1, dword_Icon
ldr R0, [R4]
bl a_SetTitleIcon
set = $
org set
mov r1, 9
set = $
org set
ldr R0, [R4]
bl a_SetStyle
set = $
org set
mov r1, 3
set = $
org set
ldr R0, [R4]
bl a_SetItemStyle
mov r1, 1
ldr R0, [R4]
bl a_SetHotkeyMode
ldr R0, [R4]
bl a_SoftKeys_Hide
ldr R0, [R4]
bl a_SoftKeys_RemoveBackground
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
LDR R0, [R4]
ldr R3, _Return
bx R3
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
NewCode1:
ldr R1, dword_title
STR R0, [R4,0x18]
bl a_SetTitleText
ldr R1, dword_Icon
LDR R0, [R4,0x18]
bl a_SetTitleIcon
set = $
org set
mov r1, 9
set = $
org set
LDR R0, [R4,0x18]
bl a_SetStyle
set = $
org set
mov r1, 3
set = $
org set
LDR R0, [R4,0x18]
bl a_SetItemStyle
mov r1, 1
LDR R0, [R4,0x18]
bl a_SetHotkeyMode
LDR R0, [R4,0x18]
bl a_SoftKeys_Hide
LDR R0, [R4,0x18]
bl a_SoftKeys_RemoveBackground
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
LDR R0, [R4,0x18]
ldr R3, _Return1
bx R3
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
a_SetTitleText:
ldr R3, _SetTitleText
bx R3
a_SetTitleIcon:
ldr R3, _SetTitleIcon
bx R3
a_SetStyle:
ldr R3, _SetStyle
bx R3
a_SetItemStyle:
ldr R3, _SetItemStyle
bx R3
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
a_SoftKeys_Hide:
ldr R3, _SoftKeys_Hide
bx R3
a_SoftKeys_RemoveBackground:
ldr R3, _SoftKeys_RemoveBackground
bx R3
;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
a_SetHotkeyMode:
ldr R3, _SetHotkeyMode
bx R3
align 4
dword_title dw 0x32F
dword_FFFF dw 0xFFFF
set = $
org set
dword_Icon dw 0xEACC
set = $
org set
_Return dw back+1
_Return1 dw back1+1
_SetTitleText dw GUIObject_SetTitleText+1
_SetTitleIcon dw GUIObject_SetTitleIcon+1
_SetStyle dw GUIObject_SetStyle+1
_SetItemStyle dw ListMenu_SetItemStyle+1
_SetHotkeyMode dw ListMenu_SetHotkeyMode+1
set = $
org set
_SoftKeys_Hide dw GUIObject_SoftKeys_Hide+1
set = $
org set
_SoftKeys_RemoveBackground dw GUIObject_SoftKeys_RemoveBackground+1
set = $
org set
_SoftKeys_RestoreBackground dw GUIObject_SoftKeys_RestoreBackground+1
set = $
org set
_SoftKeys_Show dw GUIObject_SoftKeys_Show+1
Marcadores