Show Posts

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.

Messages - Goombert

Developing ENIGMA / Re: LateralGM
« on: October 09, 2014, 12:19:18 AM »
Now I know you're being sarcastic, but regardless, you would have to make your own Look and Feel. It's just like CSS style sheets for Qt or JavaFX apps but you have to do it with actual code and then tell UIManager to use your classes to render the components. You obviously don't have to do all the painting you can in fact just set the back color or simple things like that. You can additionally use auxiliary look and feels, that's where you set a basic one and then extend it with another look and feel on top, but LGM don't support that quite yet.

I have provided links in the other topic about designing your own Look and Feel, there is even a full electronic PDF book.

Josh is also going to make a contrasting dark version of the Calico icon set that will look better with the dark themes that we will prebundle with LGM.

Developing ENIGMA / Re: LateralGM
« on: October 08, 2014, 10:30:54 PM »
I can't help it I love it. It looks just like the GM6/7/8 advertising screenshot, brings back good memories.

Developing ENIGMA / Re: LateralGM
« on: October 08, 2014, 10:11:22 PM »
I am having fun with these old GM examples. 1945 works too.

Developing ENIGMA / Re: LateralGM
« on: October 08, 2014, 09:20:50 PM »
I've added more themes, most of all the ones available for Java to the list.

There's also a cross-platform XP look and feel which is very reminiscent of GM6/7.

Developing ENIGMA / Re: LateralGM
« on: October 08, 2014, 06:54:48 PM »
You wanted a dark theme, you got one, external look and feel support has been added, recheck the OP and follow the new forum guide.

Tips, Tutorials, Examples / LateralGM Look and Feels
« on: October 08, 2014, 05:50:03 PM »
This is a bit of a guide on using custom look and feels with LateralGM. Before attempting this please download the latest LateralGM, it has not yet been added to a new Portable ZIP

1) The first thing you will need to do is locate your lateralgm.jar, it may be in your enigma-dev folder
2) Create a folder next to lateralgm.jar in the same directory named "lookandfeels"
3) Download and copy the jar file of the look and feel into the newly created "lookandfeels" folder
4) Open LateralGM and navigate to "File->Preferences/General", if you are on a newer LGM it may be "File->Preferences/Appearance"
5) Set the theme to "Custom"
6) Enter the main class name of the jar file in the "Theme Path:" text box, you will have to find this name on your own because most look and feels are not executable jars and therefore do not have this in their manifest
7) Hit "Apply Changes" and then restart LGM, I advise you to restart because sometimes the look and feels may not update properly, it's a Java issue.

I have compiled a list here of available look and feels I've already tried. Please feel free to post more to this topic in a reply, and please let's keep replies only to additions to this list, any other replies will be deleted. You can also create your own look and feels using Java the same way you would create a regular look and feel and use it with LateralGM.

Here are some links to get you started on making your own Look and Feel for Java applications:

You can also override the background image used on the MDI area. Inside the "lookandfeels" folder you created previously you just need to create a file called "lgmbackground.png" which will automatically be applied the next time you load. You can use the following dark variation of LGM's current background if you like.

Kind of a more modern flat style look and feel that really looks clean.
Class Names:

This one is for all you Windows XP/GM6/7 fans, who for all intents and purposes no longer have Windows XP or have Mac or Linux.
Class Name: de.muntjak.tinylookandfeel.TinyLookAndFeel

According to Mac's licensing, you are technically not allowed to legally use this on platforms other than Mac, but that won't stand up in court see Microsoft V. Apple
Download: (once you extract look in the "dist" folder)
Class Name: ch.randelshofer.quaqua.QuaquaLookAndFeel

Info Node
Download: (once you extract look in the "lib" folder)
Class Name: net.infonode.gui.laf.InfoNodeLookAndFeel

Class Names:
(there's more but I'm not typing them all out)

You must download the base Synthetica and place it in there before you can use the extended ones.

Download: (you will have to register, but it's still free)

Class Names:

The purpose of this one is having a Windows look and feel on Mac or Linux, it doesn't look much different than the one included in the Java SE, except fonts.
You also need to download both JGoodies Common as well as JGoodies Looks.
Class Names:


Class Name: com.pagosoft.plaf.PgsLookAndFeel

Sea Glass
Download: (seaglasslookandfeel-0.2.jar)
Class Name: com.seaglasslookandfeel.SeaGlassLookAndFeel

Developing ENIGMA / Re: LateralGM
« on: October 08, 2014, 03:55:54 PM »
Ok, another update, I just fixed printing on the Resource and Game Info frames, I've tested them and they work exactly as 8.1

Redownload the LGM jar for my updates, I've also fixed the hash.

8.1 and Studio do not have print preview support but I plan to add it eventually. Code editing frames still can not print however.

Additionally, I really couldn't test Studio because the Resource Info frame is broke, and the print dialog is really not viewable under their shitty dark theme. This is on the latest release too, but the same things were broke in the last couple releases.

Developing ENIGMA / Re: LateralGM
« on: October 08, 2014, 02:59:21 PM »
Quote from: egofree
Are you sure ?  I downloaded the latest version, and the enter still opens a resource.
Try downloading again, it looks like I didn't actually upload it to Dropbox, sorry about that.

Quote from: egofree
By the way, i was wondering if it would be useful to add 'expand all' and 'shrink all' buttons in the search tool bar. When there is a lot of results, it is annoying to expand every node to see each result.
I already thought about that and I was going to add it last night, but I won't add it to the search toolbar, I'll add it to the context menu like Eclipse.

Quote from: gra
problem with update of lateral gm of seven hour ago
when i try to close lateral gm in mint 17, and the program not close
Yes gra, listen to Harri you need to download the plugin as well; he did the same thing. If it works let me know.

Programming Help / Re: Why do we use placement new?
« on: October 07, 2014, 08:38:14 PM »
Oh wow, I am not sure you'll have to ask Josh about that one. I'll forward this to him.

Well in Psychology there's also the invincibility fallacy/personal fable.

Programming Help / Re: Why do we use placement new?
« on: October 07, 2014, 08:29:31 PM »
Can you show me a code example sorlok? I am a tad confused by what you mean.

Developing ENIGMA / Re: LateralGM
« on: October 07, 2014, 08:16:06 PM »
Alright I've added scrollbars and fixed the context menu copy action, please test it again. Additionally since ALT+Enter also opens resources when typing in the search bar, I made regular Enter by itself perform the search and automatically open the search results tab as you suggested egofree.

Quote from: egofree
The arrows buttons work only for the 'Resources' tab. What about doing the same for the 'Search results' tab ?
The arrow buttons are really only useful when the tree is not filtered, the search results tab is always filtered so every node is pretty much a result node, buttons are pretty much useless in that context.

Quote from: egofree
I think the following modification would improve the user interface : instead of having a 'Search results' tab in the resources panel, what about having a panel only for the search results ? For example, let's have a horizontal panel at the bottom of the main window (as in Eclipse or Notepad++). Every time the user is doing a new search, a new tab would be added in this panel. Each tab would be 'closable'. This means we could have several 'Search results' available, and the user would see very easily that a new search results has been completed. What do you think of my proposal ?
I had already thought of that but I felt it detracted too much from the idea of it being a reconstructed resource tree. The tree is also likely to have more vertical than horizontal dimension given a large number of results. It would be better to have a docking framework where you could pop it out and look through because it's honestly likely to be big both vertically and horizontally. Let's just focus on getting it finished first.

Developing ENIGMA / Re: LateralGM
« on: October 07, 2014, 11:47:25 AM »
Hmm, I don't seem to have that issue ego, try using CTRL+C instead of the context button, because the context button has stopped working for me, I'll have to fix. I also noticed the search results tree needs placed in a scroll panel.

Developing ENIGMA / Re: LateralGM
« on: October 06, 2014, 04:58:42 PM »
egofree, I guess I should reset the search results, yeah. I was going to leave them be because I didn't think they hurt anything, but that's really weird they would still be able to open. I am getting around to making the result nodes also recognize scope, I mentioned that in the change log.

Also, Harri is right the syntax check button can break without the search feature in the same exact way, I was able to reproduce the issue and I'll try to get it fixed, I don't know what's causing it yet.

Edit: The syntax button is an easy one, it's just a simple frame/plugin issue, if you close and reopen the frame it's fine. I've uploaded a patch, please check the extra packages page for both jars.

General ENIGMA / Re: Lateral GM question
« on: October 06, 2014, 01:56:22 PM »
Heh well, we actually aren't all that incompatible with GMK's, a major portion of games compatible are in GMK format, like Project Mario, and Project Chaos, Minecraft Example, Mark Overmars FPS, Overmars Game of Life. Some games also use properties that GMX does not store, such as removing the transparency color of sprites. Converting these games to another format would break some things here and there. We also just happen to be a lot more compatible with GMK games because they get rid of all the bad coding techniques we've yet to implement, but also add a ton of new ones, see ds accessors.