Position the pop-in/pop-out button in the upper left of the window (sized to fit the XPLMGetWindowGeometry(in_window_id, &l, &t, &r, &b) Int is_popped_out = XPLMWindowIsPoppedOut(in_window_id) Ĭonst char * pop_label = is_popped_out ? g_pop_in_label : g_pop_out_label We'll change the text of the pop-in/pop-out button based on our current state XPLMGetFontDimensions( xplmFont_Proportional, NULL, &char_height, NULL) We draw our rudimentary button boxes based on the height of the button text Void draw( XPLMWindowID in_window_id, void * in_refcon) Int dummy_mouse_handler( XPLMWindowID in_window_id, int x, int y, int is_down, void * in_refcon) Void receive_main_monitor_bounds(int inMonitorIndex, int inLeftBx, int inTopBx, int inRightBx, int inBottomBx, void * refcon) Int handle_mouse( XPLMWindowID in_window_id, int x, int y, int is_down, void * in_refcon) #error This is made to be compiled against the XPLM300 SDK Download as a project for GCC 4.x/Linux (64-bit). ![]() Download as a project for Microsoft Visual Studio 2017 (64-bit requires Windows 8.1 SDK).Download as a project for Xcode 6 or newer (64-bit Intel).It demonstrates a number of the new XPLM300 APIs, including: The following sample code creates a new, “modern” window styled like an X-Plane 11 window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |