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

General ENIGMA / Re: General Enigma Questions
« on: October 09, 2014, 05:04:32 am »
Quote from: Rujik
But now I am to a bit of a road block that I'm hoping you guys can help with again. It seems like the buffer functions are either broken or significantly different.
Sadly, I hate to tell you that they are simply broke. I am the one who attempted to write them but I am not that great with bitwise operations and I've been waiting for some free time to finally finish them, but I just haven't because more important issues keep popping up.

You can see the code here.

It would probably be better if someone like Josh just rewrote them.

Quote from: Rujik
is there anything different about surface_draw_part from GM? It seems to "kind of" draw part. where vertical lines of the previous surface show through. Looks like the computer got lazy and only updated half-ish of the surface at odd intervals.
Hmm, that could be a scaling issue introduced by my recent viewport scaling changes that Harri currently fixed in a commit.

Also, if you want to post here that's fine, but I would suggest separating issues from this topic and posting them under "Issues/Help Desk"

Developing ENIGMA / Re: LateralGM
« on: October 09, 2014, 05:01:35 am »
I've now improved the main zoom tool, it will properly center to where you've clicked. I've additionally fixed the layout of the preferences frame to make it friendlier to certain look and feels.

Quote from: egofree
Ok, it is working as expected.  (Y) Now let's add scope and scripts in events and everything will be perfect !
There's still tons of changes coming that you will be very surprised about, this is why I'm going slower with the version numbers. Top secret.

Also, just to prove a point, these look and feels do work on Linux.

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.