Starting with JPortal v1.3 you can build themes from internet resources. You can find the corresponing menu button as seen in the below picture:
INet Theme configuration Menu
Themes are stored in a local directory in the "Themes" folder. A Theme consists mainly of image files, which must fit certain dimensions and a naming scheme.
The INet Themes enable you to build local JPortal themes from internet resources, without distributing the actual image files (which might in some rare cases be of dubious origin) - which reduces size of theme packages considerately.
The INet-Themes are still being worked on, but with the few features already finished you can achieve nice results.
INet Theme configuration
Here you can see the basic configuration screen.
In the upper third,
you can see the "usual" stuff. Name the theme, save, load etc.
You also see two additional buttons:
Create Local theme (see below)
Proxy Configuration (which opens a modal dialog where you can configure your proxy settings if needed)
The name you give here will also be the name of the to be generated local theme!
In the second third
you will be able to give the general theme setting which can also be configured for "local" themes. When generating a theme with INet resources, these setting will be used for the local theme. As of now there are only three settings available - but that might change in the future.
In the third third
you can actually configure the INet resources.
Each theme consists of a number of images (as of now a total of 24 images). For each image there is a "Theme ID". Each image can be configured by its own. If any image is not configured, the settings from the "default" theme will be taken. The Theme-ID can be selected, next to the selection the "real-name" of the image as it will be saved to the theme directory will be displayed.
Some images of a theme must have a fixed size, e.g. small mana symbols have a size of 16x16 pixels. If the image must have a fixed size, scaling values (see below) will be set correspondingly and changes are not allowed!
You can edit all images in one go - image information for one theme will be kept in memory - nonetheless it is never a bad idea to save often.
Below you can edit the settings for the chosen Theme ID.
at first you should find a picture to use
copy and paste its URL to the next textfield
pressing the "Get" button loads the picture into memory height and weight will be displayed and preview will be filled with a scaled version of the image
pressing the "Show" button displays the image in all its glory in a modal window
Theme ID: THEME GAMEBACK is used for the game background image (during play). This value is not fixed, and can be configured in the local theme - therefor it is also possible to edit a filename for that image - if the textfield "Save as" is enabled → you can enter a filename for the image here.
if you wish to only use some part of an image you can enter the offsets and the height and width values next to the preview. Alternatively you can press the button "Manual edit" which opens a seperate modal window, where you can chose these values by using a crosshair and the mouse.
Next to there setting you can set values for scaling. Lets say you find a nice white mana-symbol on the net, but the size is 200x200. By setting the scale width and height to 16 and enable scaling by selecting "scale it", the image will be scaled down to 16x16. The preview window shows the result (although this will again be scaled to fit the window, which in that special case will look rather "blocky" or better "washy")
Scaling occurs after offset definition. So it possible to select part of an image and next scale it to a desired size!
If a Theme-ID has the text "SMALL" in it - it usually means that this one is a small version of a bigger image. You can either do the above and scale it down - OR - select "build from big version" (you cant see that on the screenshot - it only appears if selectable). When this option is selected, you don't need to enter any URL or configure anything. When you select that option, than a scaled down version of the "big" image is automatically built and saved as the "small" version.
Special case The theme id: THEME ALL MANA can be built from all mana symbols automatically. The (scaled down) mana symbols will be arranged in a "circle" and the result will be saved as the "AllIcon.png" - image.