Goombert
 Joined: Jan 2013
Posts: 2,991
|
 |
Reply #150 Posted on: November 09, 2014, 12:53:48 PM |
|
|
Another quick update, you can download the same as always. I've added the line number panel found in Studio to the action list. http://enigma-dev.org/docs/Wiki/Install:Extra_Packageshttps://github.com/IsmAvatar/LateralGM/commit/303dcc656e03ebe115c77461ac935bee04a73c6d  Quote from: egofreeOk, i understand now. There is a problem with the focus. Within the objects window, if the actions list panel doesn't have the focus, the keyboards shortcuts don't work. I give an example : if you add several new actions, and try CTRL-Z, it doesn't work if an action has not been selected before in the actions list panel. That is actually a Swing issue, mouse released does not register focus on a component, only left mouse clicked. I had to work around that to make right click focus the selected node on the resource tree as well.
|
|
|
|
|
IsmAvatar
LateralGM Developer
 Joined: Apr 2008
Posts: 877
|
 |
Reply #152 Posted on: November 09, 2014, 06:31:39 PM |
|
|
Quote from: Robert B Colton on November 09, 2014, 05:37:11 AM
Quote from: egofreecan't reproduce the error anymore. But why this event selector is in the main toolbar ? It's only for objects. It should be in the objects window. If you don't have an object open, it can't be used. This doesn't seem logical to me. This icon seems useless to me in this place. It is also displayed when you are in the objects events and you click on the modify button. It has been in there since LGM was first started egofree, it's kind of unique to the application, occasionally I click on the button as well to get the panel. If you think it should be removed you should discuss it with everyone else, I personally don't have an opinion on it either way because if you don't use it, it's not in your way so it shouldn't bother you.
Actually the Event Selector has a bit of a history behind it, and has changed a lot through each of the LGM releases. Originally it behaved very much like GM's, but we figured we could do better, and a few ideas were thrown around and some experimentation was done. What you're seeing now is really just the latest incarnation, and can certainly be changed. The button is one of the newest additions, and even it has changed a bit, moving around and getting new icons. I certainly agree that it doesn't make sense for it to be present when there are no Objects to select Events for, but that said, removal of the button on such a main interface as the Toolbar might be a little too overt. I could be wrong. Feel free to try it out and keep it if you think it works. Fortunately the location of the button is very unobtrusive, so we don't have to worry about other items shifting.
|
|
|
Goombert
 Joined: Jan 2013
Posts: 2,991
|
 |
Reply #153 Posted on: November 10, 2014, 03:57:00 AM |
|
|
Another quick update I've added save functionality to the sprite and background frames including APNG support. You can in fact save all your subimages to an APNG with this feature, it will save the selected subimages on the frame or if none are selected it will save them all. GIF animation writing is not yet supported. https://github.com/IsmAvatar/LateralGM/commit/337081b85d4b212c51d12f2bcf5261bef0e14224I used the new save button to export this animated monster from the Mark Overmar's FPS example to the APNG format.  As always you can get these changes through python install.py or manually downloading the new jars. http://enigma-dev.org/docs/Wiki/Install:Extra_PackagesQuote from: egofreeWhen you are doing a copy and several pastes one after the other, you've all actions selected : I've discovered that as well, I'll see what I can do about it to restore it to expected behavior, but for now make sure the undo/redo behavior works. Quote from: IsmAvatarI certainly agree that it doesn't make sense for it to be present when there are no Objects to select Events for, but that said, removal of the button on such a main interface as the Toolbar might be a little too overt. Perhaps as a compromise we could hide it when the user has it docked as a tab because we don't need 2 places on the main interface to get to it in 1 click.
|
|
|
egofree
 Joined: Jun 2013
Posts: 601
|
 |
Reply #154 Posted on: November 10, 2014, 04:00:51 PM |
|
|
|
I reported before problems with the language setting set to english on my PC with a french version of Windows 7. I did more tests with the language setting and i installed in a virtual machine a french version of Windows XP 32 bits. I have the same problem. The language is set to 'English', but you still see a lot of labels in french. It does not change anything if you change the local of your OS, as it is seems only based on the language of your OS. Of course if you have a english OS, you will not see this problem.
|
|
|
|
|
|
|
egofree
 Joined: Jun 2013
Posts: 601
|
 |
Reply #157 Posted on: November 12, 2014, 09:31:36 AM |
|
|
Quote from: Robert B Colton on November 12, 2014, 07:59:17 AM Quick update, I've partially fixed the selection issues with the undo manager on the ActionList restoring the old behavior. Moving actions still causes the selection to be completely lost, will fix it soon.
Are you sure ? Try to open a objects window, add some actions, and try an undo with ctrl-z. Despite the fact that new actions are automatically selected in the list, you have to manually select an action in the list if you want the undo to work.
|
|
|
Goombert
 Joined: Jan 2013
Posts: 2,991
|
 |
Reply #158 Posted on: November 13, 2014, 12:01:42 AM |
|
|
Quote from: egofreeConcerning the actions list line numbers, personally i preferred how it was before, with a different background color, as the line numbers were more easily distinguished. Well, it was my two cents.  I don't know where you are coming from with that because in the old one it was impossible to view the line number on the selected line (look at the old screenshot). It in fact still uses the same colors, just doesn't change the selected line just like a normal code editor doesn't. It's still either way technically more correct because it's not a generic JComponent, it's a list component. Maybe we can add a preference in the future. Quote from: egofreeAre you sure ? Try to open a objects window, add some actions, and try an undo with ctrl-z. Despite the fact that new actions are automatically selected in the list, you have to manually select an action in the list if you want the undo to work. Even GM: Studio's undo does not restore the selection, in fact no code or text editor does except regular Notepad. If you look at Scintilla, Notepad++, Eclipse, Code::Blocks, Visual Studio, Microsoft Word, etc. Undoing or redoing always destroys your current selection. Now you are correct that the focus still doesn't work, but undo/redo itself and maintain selection is perfectly fine now except when moving actions, moving list items is supposed to maintain your selection, that I still need to fix.
|
|
|
egofree
 Joined: Jun 2013
Posts: 601
|
 |
Reply #159 Posted on: November 13, 2014, 05:37:00 PM |
|
|
Quote from: Robert B Colton on November 13, 2014, 12:01:42 AM I don't know where you are coming from with that because in the old one it was impossible to view the line number on the selected line (look at the old screenshot).
Look at the first screen you posted when you implemented the line numbers :  The background color of the line numbers is a light grey. I was just saying i prefer that. But anyway that's not important. Quote from: Robert B Colton on November 13, 2014, 12:01:42 AM
Quote from: egofreeAre you sure ? Try to open a objects window, add some actions, and try an undo with ctrl-z. Despite the fact that new actions are automatically selected in the list, you have to manually select an action in the list if you want the undo to work. Even GM: Studio's undo does not restore the selection, in fact no code or text editor does except regular Notepad. If you look at Scintilla, Notepad++, Eclipse, Code::Blocks, Visual Studio, Microsoft Word, etc. Undoing or redoing always destroys your current selection.
Now you are correct that the focus still doesn't work, but undo/redo itself and maintain selection is perfectly fine now except when moving actions, moving list items is supposed to maintain your selection, that I still need to fix.
Perhaps i understand nothing or my english is too bad  , but i feel we are not talking about the same thing. I am not talking about problems with selection, but about the fact that when you add a new action, it should be possible to use the ctrl-z shortcut to remove the new action. Right now if you open an objects window, and you add directly new actions, it's not working, if you don't click manually on an action list. Perhaps this is the correct way, and there is nothing wrong with this. To conclude, let's forget about these problems if i understood nothing. 
|
|
|
TheExDeus
 Joined: Apr 2008
Posts: 1,860
|
 |
Reply #160 Posted on: November 13, 2014, 10:02:55 PM |
|
|
For some reason with the newest LGM I get constant crashes (I think the plugin crashes, as I cannot select anything in the ENIGMA menu only). http://pastebin.com/tmqjBXWGhttp://pastebin.com/Y8bBhFepIt shows that on startup. I don't have to do anything.
|
|
|
Goombert
 Joined: Jan 2013
Posts: 2,991
|
 |
Reply #161 Posted on: November 13, 2014, 10:29:28 PM |
|
|
Another quick updated, I've fixed a typo in the GMX reader that was causing room persistence not to save. Update using python install.py or manually download the new jars. http://enigma-dev.org/docs/Wiki/Install:Extra_PackagesThis was the commit that fixed the GMX reader. https://github.com/IsmAvatar/LateralGM/commit/978f1fda054a49d265e51ab0d64f1771547b4255Quote from: egofreeLook at the first screen you posted when you implemented the line numbers : I see, but with the dark look and feel it made them invisible, it's still more consistent to use list colors and not generic component colors for the numbers. Like I said maybe we should add a preference. Quote from: egofreePerhaps i understand nothing or my english is too bad , but i feel we are not talking about the same thing. I am not talking about problems with selection, but about the fact that when you add a new action, it should be possible to use the ctrl-z shortcut to remove the new action. Right now if you open an objects window, and you add directly new actions, it's not working, if you don't click manually on an action list. Perhaps this is the correct way, and there is nothing wrong with this. It was like that in the old LGM as well, go back and test 1.8.6 and earlier versions. What you are describing is that the action list should have focus by default, which I don't really know if that is a good idea or not. http://enigma-dev.org/docs/Wiki/LateralGM:_RevisionsQuote from: TheExDeusFor some reason with the newest LGM I get constant crashes (I think the plugin crashes, as I cannot select anything in the ENIGMA menu only). It looks like you managed to reproduce the focus traversal bug, I'll try to push a patch for enigma.jar for you to see if it fixes it. This is regarding turning off window decorations, do not try messing with the preference I want to actually fix this. Just please answer two quick questions: 1) Have you updated both enigma.jar and lateralgm.jar? Because it looks like your engima.jar is out of date, the reported line numbers are incorrect. 2) What is the window decorations preference set to under "Appearance"? 3) What is hardware acceleration set to?
|
|
|
TheExDeus
 Joined: Apr 2008
Posts: 1,860
|
 |
Reply #162 Posted on: November 14, 2014, 12:20:15 AM |
|
|
Quote1) Have you updated both enigma.jar and lateralgm.jar? Because it looks like your engima.jar is out of date, the reported line numbers are incorrect. Yes. I downloaded the enigma.jar from wiki. I just did it again, but the same problem (as it's still 5 days old). Quote2) What is the window decorations preference set to under "Appearance"? I have it turned off. I just enabled it and same problem. Then I turned it off again. Quote3) What is hardware acceleration set to? Off. The problem actually started before I upgraded. I just though upgrading might fixed it. It started for no apparent reason while I was editing an .egm and making the gui extension. The "Memory access violation" made me think the problem could be a lot deeper, like parsing one of the files I changed. But the stack trace doesn't show anything like that, so I don't know.
|
|
|
|
|
TheExDeus
 Joined: Apr 2008
Posts: 1,860
|
 |
Reply #164 Posted on: November 14, 2014, 08:03:16 AM |
|
|
QuoteDoes the error only happen when loading this specific EGM? Try loading a GMK or GMX or open ENIGMA without opening that EGM. No, I don't even load anything. It happens right when opening LGM. edit: Jup, just as I thought. The problem is that I had an error in an include.h file. Instead of "gui_button_get_style(int id);" I got "gui_button_get_style(int id){", which broke the parser and then the error message (I think it was the error message) then broke LGM, because the error message needed some fancy borders or something. I think the parser shouldn't segfault on syntax errors like that. Josh (or anyone else doing parser stuff) should look into that.
|
|
|
|