Pages: 1 2 3 4 5 6 7 8 9
Author Topic: Improving rooms editor  (603,654 Views)
Offline (Unknown gender) egofree

Contributor
Joined: Jun 2013
Posts: 601
View profile
Reply #120 Posted on: December 27, 2014, 02:08:25 PM
Quote from: Robert B Colton on December 27, 2014, 01:06:52 PM
On a side note, have you been adding the keyboard shortcuts to the properties file I added? That was a change I made a while back, you should use KeyStroke.getKeyStroke(Messages.getKeyboardString(""))
https://github.com/IsmAvatar/LateralGM/blob/master/org/lateralgm/messages/keyboard.properties

Yes, in general i've used the keyboard.properties file, except for the following keys : Alt, Ctrl and Shift. There is no problem when you combine these keys with a letter (Ctrl-c, Ctrl-x, etc), but i didn't succeed to declare and use them in the keyboard.properties when they are used alone. I spent several hours, and the only solution i've find so far is this : (e.g for Alt Key)

KeyStroke altKeyPressed = KeyStroke.getKeyStroke(KeyEvent.VK_ALT,InputEvent.ALT_DOWN_MASK,false);
KeyStroke altKeyReleased = KeyStroke.getKeyStroke(KeyEvent.VK_ALT,0,true);

Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #121 Posted on: December 27, 2014, 10:09:29 PM
Ok great, don't worry there's a few places where some keyboard modifiers are not stored there yet, I'll figure it out when I can.
Offline (Unknown gender) egofree

Contributor
Joined: Jun 2013
Posts: 601
View profile
Reply #122 Posted on: December 28, 2014, 01:04:42 PM
Quote from: Robert B Colton on December 27, 2014, 01:57:21 AM
All of these caveats would best be documented on the Wiki page I linked you to. Instead of repeating the same instructions over and over again, just write them on the Wiki and then share the link to anybody who needs to know. Also so you don't forget either.

http://enigma-dev.org/docs/Wiki/Room_Editor
http://enigma-dev.org/docs/Wiki/Working_with_LateralGM

Done !  I documented the new features in the wiki :

http://enigma-dev.org/docs/Wiki/Room_Editor

It's strange, i didn't find any documentation about the new features you added recently in LateralGM (Global search, Image effects)  :D ;)

Edit:
I think we should make additional sub-pages in the wiki for the rooms editor. As there is a lot of stuff in the rooms editor, one page doesn't seem enough if one day we will document every feature.
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #123 Posted on: December 28, 2014, 05:04:51 PM
We will split the page into multiple subpages as individual sections become large enough to qualify. For now, just document to your heart's content on one page.
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #124 Posted on: December 28, 2014, 06:25:44 PM
egofree, wow that's is very nice, I didn't expect you to document it that well, I just wanted the keyboard shortcuts listed really lol, but you did an awesome job! I love it  (Y)
Offline (Unknown gender) egofree

Contributor
Joined: Jun 2013
Posts: 601
View profile
Reply #125 Posted on: December 29, 2014, 10:11:57 AM
I've modified the way we select objects : it takes into account now the relative position of the mouse within the object. This prevents a shifting when an object is selected. I think it's much more precise.
Offline (Unknown gender) egofree

Contributor
Joined: Jun 2013
Posts: 601
View profile
Reply #126 Posted on: December 29, 2014, 07:13:36 PM
I added the undo when a region is filled, deleted, or pasted, or when all tiles or all instances are deleted in the room.

Edit:
Also adding undo when deleting a tile's layer.
Offline (Unknown gender) egofree

Contributor
Joined: Jun 2013
Posts: 601
View profile
Reply #127 Posted on: December 30, 2014, 09:41:25 AM
I have updated the wiki : http://enigma-dev.org/docs/Wiki/Room_Editor and added a paragraph about the the tile's layers. It was important to add this paragraph, as the selection tool is linked to tile layers : when you copy a tiles selection, it will copy by default only tiles of the selected layer, except if the option 'Edit other layers' is checked.
Now i have finished to work on LateralGM, and you will not hear me anymore for a while on the rooms editor ! :P
Pages: 1 2 3 4 5 6 7 8 9