Skip to content

Commit

Permalink
add and rename some missing images for the anchor editor
Browse files Browse the repository at this point in the history
  • Loading branch information
cheat-engine committed Aug 19, 2019
1 parent c127b24 commit 65c7150
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 8 deletions.
16 changes: 10 additions & 6 deletions Cheat Engine/designerimagelist.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
images/anchor_bottom.png
images/anchor_center_horizontal.png
images/anchor_center_vertical.png
images/anchor_left.png
images/anchor_left_left.png
images/anchor_left_center.png
images/anchor_left_right.png
images/anchor_right.png
images/anchor_top.png
images/anchor_right_left.png
images/anchor_right_center.png
images/anchor_right_right.png
images/anchor_bottom_bottom.png
images/anchor_bottom_center.png
images/anchor_bottom_top.png
images/anchor_top_top.png
images/anchor_top_center.png
images/anchor_top_bottom.png
Binary file modified Cheat Engine/designerimages.res
Binary file not shown.
4 changes: 4 additions & 0 deletions Cheat Engine/formdesignerunit.lfm
Original file line number Diff line number Diff line change
Expand Up @@ -3013,6 +3013,10 @@ object FormDesigner: TFormDesigner
Caption = 'Move down'
OnClick = miMenuMoveDownClick
end
object miAnchorEditor2: TMenuItem
Caption = 'Anchor Editor'
OnClick = miAnchorEditorClick
end
end
object MainMenu1: TMainMenu
left = 1008
Expand Down
1 change: 1 addition & 0 deletions Cheat Engine/formdesignerunit.lrt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ TFORMDESIGNER.MISAVELFM.CAPTION=Save LFM
TFORMDESIGNER.MILOADLFM.CAPTION=Load LFM
TFORMDESIGNER.MIDELETE.CAPTION=Delete
TFORMDESIGNER.MIANCHOREDITOR.CAPTION=Anchor Editor
TFORMDESIGNER.MIANCHOREDITOR2.CAPTION=Anchor Editor
TFORMDESIGNER.MIADDITEMS.CAPTION=Add Items
TFORMDESIGNER.MIADDTAB.CAPTION=Add Tab
TFORMDESIGNER.MENUITEM2.CAPTION=Add unlisted object
8 changes: 6 additions & 2 deletions Cheat Engine/formdesignerunit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ interface
MenuItem1: TMenuItem;
MenuItem2: TMenuItem;
miAnchorEditor: TMenuItem;
miAnchorEditor2: TMenuItem;
miMenuSep: TMenuItem;
miMenuMoveUp: TMenuItem;
miMenuMoveDown: TMenuItem;
Expand Down Expand Up @@ -460,6 +461,8 @@ procedure TFormDesigner.PopupMenu1Popup(Sender: TObject);
miBringToFront.visible:=(oid.Selection.Count>0) and (oid.selection[0] is TControl);
miSendToBack.visible:=miBringToFront.visible;

miAnchorEditor2.Visible:=miBringToFront.visible and not (oid.selection[0] is TCustomForm);;

miMenuSep.visible:=miAddSubMenu.visible;
miMenuMoveUp.visible:=miMenuSep.visible;
miMenuMoveDown.visible:=miMenuSep.visible;
Expand Down Expand Up @@ -723,9 +726,10 @@ procedure TFormDesigner.ObjectInspectorSelectionChange(sender: tobject);
surface.Selector.AddToSelection(tcontrol(p));
end;

if AnchorDesigner<>nil then
GlobalDesignHook.SetSelection(oid.Selection);

surface.onselectionchange:=designerSelectionChange;


end;

end;
Expand Down
File renamed without changes
Binary file added Cheat Engine/images/anchor_bottom_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Cheat Engine/images/anchor_left_center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added Cheat Engine/images/anchor_right_center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Cheat Engine/images/anchor_right_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added Cheat Engine/images/anchor_top_center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
1 change: 1 addition & 0 deletions Cheat Engine/release/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ lua:
Publish frmTracer
Publish frmUltimap2
Publish frmCodeFilter
Publish imagelist
Added the DrawItemEvent general GUI property to Lua's callback system
Added the MenuDrawItemEvent general GUI property to Lua's callback system
Added the ContextPopupEvent general GUI property to Lua's callback system
Expand Down

0 comments on commit 65c7150

Please sign in to comment.