This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 »
286
General ENIGMA / Re: New functions available in the rooms editor.
« on: July 31, 2014, 03:18:59 pm »
I've implemented the 'room controls' window:

Also i've put in the main repository of LateralGm the latest modifications about the room controls.

Also i've put in the main repository of LateralGm the latest modifications about the room controls.
287
General ENIGMA / Re: New functions available in the rooms editor.
« on: July 31, 2014, 04:17:20 am »
I want to add a help button for the room controls. I don't want to spend hours to figure out if my sentences are correct or not, and i will take the sentences of GM Studio :
It's ok, but i think it's succinct. If you have any advises, they are welcome.
Quote
Left mouse button : Move/Add
Left mouse button + Alt : No snap
Left mouse button + Shift : Add multiple
Left mouse + Ctrl : Add on top
Right mouse button : Delete
It's ok, but i think it's succinct. If you have any advises, they are welcome.
288
General ENIGMA / Re: New functions available in the rooms editor.
« on: July 30, 2014, 06:40:42 am »
As i proposed before, i modified the way objects are selected :
- Left button : add an object when there is no objects, and move otherwise
- Left button + ctrl : always add an object (useful when you want to add an object on top of another one)
- Left button + shift : add multiple objects (no change)
The right button deletes objects, it's the same.
The commands in the rooms editor are identical now to GM. I think it's better than before.
Here is the latest version of LateralGm : https://dl.dropboxusercontent.com/u/29802501/lateralgm.jar
- Left button : add an object when there is no objects, and move otherwise
- Left button + ctrl : always add an object (useful when you want to add an object on top of another one)
- Left button + shift : add multiple objects (no change)
The right button deletes objects, it's the same.
The commands in the rooms editor are identical now to GM. I think it's better than before.
Here is the latest version of LateralGm : https://dl.dropboxusercontent.com/u/29802501/lateralgm.jar
289
General ENIGMA / Re: New functions available in the rooms editor.
« on: July 30, 2014, 02:23:15 am »
I don't intend to change anything, but it seems to me that it's inconsistent in GM studio. You have resources, displayed in the left panel, and you have resources instances in a room. For shifting objects and tiles, GM Studio displays the following message :
But if we want to be consistent, we should have :
Or
Anyway for me it's not so important, and it will not prevent me from sleeping !
Quote
Shift all instances by a given amount
Shift all tiles by a given amount
But if we want to be consistent, we should have :
Quote
Shift all object instances by a given amount
Shift all tile instances by a given amount
Or
Quote
Shift all objects by a given amount
Shift all tiles by a given amount
Anyway for me it's not so important, and it will not prevent me from sleeping !
290
General ENIGMA / Re: New functions available in the rooms editor.
« on: July 28, 2014, 01:40:16 pm »
I made a pull request for global shifting and deleting of instances and tiles. I merged the pull request into the main repository of LateralGm. IsmAvatar was kind and gave me the role of collaborator.
This means i don't need anymore others permission for my pull requests. That's very useful as anyway there is nobody now who has enough time to review my pull requests for LateralGm (Of course i would be pleased to have some code review of my pull requests).
When deleting instances, i display the following message :
I've found also that during global shifting, each piece must be selected in the list. I still don't know why. This means that it's slower, but as i said before it's not a big deal, as it takes about 2 seconds for a room with thousands of objects.
When deleting instances, i display the following message :
Quote
Are you sure you want to delete all instances ? All data will be lost
I've found also that during global shifting, each piece must be selected in the list. I still don't know why. This means that it's slower, but as i said before it's not a big deal, as it takes about 2 seconds for a room with thousands of objects.
291
General ENIGMA / Re: New functions available in the rooms editor.
« on: July 27, 2014, 05:23:40 am »So I personally would like "Shift all instances" and "Shift all tiles". But that's just me.
This is the way it's written in GM Studio, it's ok for me.
292
General ENIGMA / Re: New functions available in the rooms editor.
« on: July 27, 2014, 05:21:31 am »
I added the delete instances button :

I didn't implement the undo, but the user is informed that the undo is not available. But is 'It can't be undone' correct ?
I sent an email to IsmAvatar for asking her is she has any ideas about optimizing the undo, and then i will make a pull request.
Edit:
The message will be updated also : i will not use the objects word but instances.

I didn't implement the undo, but the user is informed that the undo is not available. But is 'It can't be undone' correct ?
I sent an email to IsmAvatar for asking her is she has any ideas about optimizing the undo, and then i will make a pull request.
Edit:
The message will be updated also : i will not use the objects word but instances.
293
General ENIGMA / Re: New functions available in the rooms editor.
« on: July 27, 2014, 03:17:02 am »
I've finished to fix the undo. I had already the same problem when moving a single instance and it's very strange : before moving every instance, it must be selected in the list of the left panel :
It doesn't seem very clean, but this is the only working solution i've found so far. (Firing the object update or tile update is not sufficient) .If you don't do this, all instances will be messed up if you use the undo with others commands, like deleting or moving a single instance. This means also that the undo will be much slower for shifting, but i don't think it's a big problem. For a room with thousands of objects, it will take something like 2 seconds instead of 0.5 second.
Here is the latest version of LateralGm : https://dl.dropboxusercontent.com/u/29802501/lateralgm.jar
Code: [Select]
for (Instance instance : room.instances)
{
roomFrame.oList.setSelectedValue(instance,true);
roomFrame.fireObjUpdate();
Point newPosition = new Point(instance.getPosition().x - horizontalShift, instance.getPosition().y - verticalShift);
instance.setPosition(newPosition);
}
It doesn't seem very clean, but this is the only working solution i've found so far. (Firing the object update or tile update is not sufficient) .If you don't do this, all instances will be messed up if you use the undo with others commands, like deleting or moving a single instance. This means also that the undo will be much slower for shifting, but i don't think it's a big problem. For a room with thousands of objects, it will take something like 2 seconds instead of 0.5 second.
Here is the latest version of LateralGm : https://dl.dropboxusercontent.com/u/29802501/lateralgm.jar
294
General ENIGMA / Re: New functions available in the rooms editor.
« on: July 27, 2014, 02:00:22 am »I would prefer it just be "Shift Instances" instead of having a double plural, since instances automatically infers objects which is entirely unrelated. Otherwise we should call it Objects Instances Creation Code as well.
I was wondering if it was correct or not to write objects instances. At first i wrote 'Shift instances', but depending on the selected tab the command is not the same, so i think it's useful to write if we are shifting objects or tiles.
Instead i propose the following titles : 'Shift all objects' and 'Shift all tiles'. By the way all labels are stored in the messages.properties file, so if one day another developer wants to modify them, it should be easy.
I am still working on the undo function. It's working fine if you are only shifting instances, but if you are mixing with others commands (delete or moving instances), it can be corrupted. The way LateralGm is managing the selected instance is still a mystery for me.
295
Developing ENIGMA / Re: Two sets of icons in LateralGm
« on: July 26, 2014, 03:32:29 pm »
I asked IsmAvatar and she said that she would prefer we keep the swing icons. So i will not modify anything. Anyway the icons don't take a lot of space.
296
General ENIGMA / Re: New functions available in the rooms editor.
« on: July 26, 2014, 03:28:13 pm »
I added the global shift of instances :

If the tiles tab is selected, the shift command will shift tiles, otherwise it will shift objects. Of course it can be undone. Also, i will add a new button to clear all instances in the room. It is present also in GM Studio. But i don't think i will add the possibility to undo the clear of instances, because it can use a lot of memory.
You can download the latest version of LateralGm here : https://dl.dropboxusercontent.com/u/29802501/lateralgm.jar

If the tiles tab is selected, the shift command will shift tiles, otherwise it will shift objects. Of course it can be undone. Also, i will add a new button to clear all instances in the room. It is present also in GM Studio. But i don't think i will add the possibility to undo the clear of instances, because it can use a lot of memory.
You can download the latest version of LateralGm here : https://dl.dropboxusercontent.com/u/29802501/lateralgm.jar
297
Programming Help / Re: Good tutorial?
« on: July 26, 2014, 10:33:49 am »
An interesting tutorial for making a scrolling shooter : http://forums.tigsource.com/index.php?topic=3142.0
298
Developing ENIGMA / Two sets of icons in LateralGm
« on: July 25, 2014, 03:14:27 pm »
in LateralGm, there is currently two sets of icons : Calico and Swing. You can choose the icons set in preferences. The problem is that there is a lot of swing icons who are missing for the current version of LateralGm. (You will see a lot of empty squares if you choose the swing set). Where the swing icons are coming from ? And do we really need to keep the swing icons ?
299
Issues Help Desk / Re: Can't rename a resource under linux KDE
« on: July 25, 2014, 03:02:00 pm »
If you change in preferences the icons to Swing, the bug is gone !
Don't ask me why !
Don't ask me why !
300
Developing ENIGMA / Re: Iji on ENIGMA
« on: July 25, 2014, 04:23:14 am »
It looks very nice, thanks for sharing and for improving enigma also !