Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 53 54 55 [56]   Go Down

Author Topic: graphics extender  (Read 49104 times)

0 Members and 2 Guests are viewing this topic.

TXZCJSP

  • member
  • Offline Offline
  • Posts: 8
Re: graphics extender
« Reply #660 on: June 14, 2019, 07:56:36 PM »

O! M! G !
Logged

shardana

  • member
  • Offline Offline
  • Posts: 477
Re: graphics extender
« Reply #661 on: Yesterday at 02:29:50 AM »

Just amazing!!! is it already in the last build?
Logged

slibenli

  • member
  • Offline Offline
  • Posts: 254
Re: graphics extender
« Reply #662 on: Yesterday at 07:18:48 AM »


Cool shots slibenli  8)

What map?
and what time you set them to?

Slovakia winter. I don't know the exact time as I made those screenshots in my test program where I can directly control the sun direction.

Just amazing!!! is it already in the last build?

Nope ;)

slibenli

  • member
  • Offline Offline
  • Posts: 254
Re: graphics extender
« Reply #663 on: Yesterday at 08:05:11 AM »

The latest build now contains a java interface.
https://gitlab.com/vrresto/il2ge/-/jobs/231925477/artifacts/browse/install/il2ge/java_interface/org/il2ge/
https://gitlab.com/vrresto/il2ge/-/jobs/232136552/artifacts/browse/install/il2ge/java_interface/org/il2ge/


Code: [Select]
package org.il2ge;
import org.il2ge.GraphicsExtenderJNI;
public class GraphicsExtender {
  public static int getInterfaceVersion() {
    return GraphicsExtenderJNI.getInterfaceVersion();
  }

  public static int getNumCommandNames() {
    return GraphicsExtenderJNI.getNumCommandNames();
  }

  public static String getCommandName(int index) {
    return GraphicsExtenderJNI.getCommandName(index);
  }

  public static String getCommandDisplayText(String command_name) {
    return GraphicsExtenderJNI.getCommandDisplayText(command_name);
  }

  public static void executeCommand(String command_name) {
    GraphicsExtenderJNI.executeCommand(command_name);
  }
}

Through methods getNumCommands getNumCommandNames getCommandName and executeCommand an arbitrary number of commands is made available.
These could be used to create hotkeys and/or console commands.

Edit: I've added the method getCommandDisplayText .
This may be used as display text for the hotkey in the game GUI, while getCommandName is suitable for saving the hotkey in the configuration.

I would be happy if one of the java coders could look into this.
Pages: 1 ... 53 54 55 [56]   Go Up
 

Page created in 0.013 seconds with 26 queries.