Pages: « 1 2 3 4 5 6 7 8 9
  Print  
Author Topic: Improving rooms editor  (Read 22330 times)
Offline (Unknown gender) egofree
Reply #120 Posted on: December 27, 2014, 09:08:25 AM
Contributor
Joined: Jun 2013
Posts: 603

View Profile Email
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)

Code: [Select]
KeyStroke altKeyPressed = KeyStroke.getKeyStroke(KeyEvent.VK_ALT,InputEvent.ALT_DOWN_MASK,false);
KeyStroke altKeyReleased = KeyStroke.getKeyStroke(KeyEvent.VK_ALT,0,true);
« Last Edit: December 27, 2014, 11:06:46 AM by egofree » Logged
Offline (Male) Goombert
Reply #121 Posted on: December 27, 2014, 05:09:29 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
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.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) egofree
Reply #122 Posted on: December 28, 2014, 08:04:42 AM
Contributor
Joined: Jun 2013
Posts: 603

View Profile Email
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.
« Last Edit: December 28, 2014, 08:48:49 AM by egofree » Logged
Offline (Male) Josh @ Dreamland
Reply #123 Posted on: December 28, 2014, 12:04:51 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
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.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) Goombert
Reply #124 Posted on: December 28, 2014, 01:25:44 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
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)
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) egofree
Reply #125 Posted on: December 29, 2014, 05:11:57 AM
Contributor
Joined: Jun 2013
Posts: 603

View Profile Email
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.
« Last Edit: December 29, 2014, 05:16:28 AM by egofree » Logged
Offline (Unknown gender) egofree
Reply #126 Posted on: December 29, 2014, 02:13:36 PM
Contributor
Joined: Jun 2013
Posts: 603

View Profile Email
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.
« Last Edit: December 29, 2014, 03:35:03 PM by egofree » Logged
Offline (Unknown gender) egofree
Reply #127 Posted on: December 30, 2014, 04:41:25 AM
Contributor
Joined: Jun 2013
Posts: 603

View Profile Email
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
Logged
Pages: « 1 2 3 4 5 6 7 8 9
  Print