API Index2: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
No edit summary
No edit summary
Line 8: Line 8:


'''[[API_AbortMission|AbortMission]]'''(int itemid) -> nil :: Abort a mission
'''[[API_AbortMission|AbortMission]]'''(int itemid) -> nil :: Abort a mission
'''[[API_AccomplishmentTemplate|AccomplishmentTemplate]]'''(function cb(string desc)) -> userdate box :: Create box with accomplishment icons (targetinfo dialog). see: [[AccomplishmentTemplate]]
'''[[API_AccomplishmentTemplate2|AccomplishmentTemplate2]]'''(function cb(string desc, int type, level)) -> userdate box :: Create list with accomplishment icons (pda playerinfo dialog). see: [[AccomplishmentTemplate]]


'''[[API_Article|Article]]'''(string ''word'') -> string ''out'' :: prepends the appropriate article to the string ''word''
'''[[API_Article|Article]]'''(string ''word'') -> string ''out'' :: prepends the appropriate article to the string ''word''
Line 20: Line 16:


'''[[API_CancelPurchaseShipLoadout|CancelPurchaseShipLoadout]]'''() -> nil :: Interrupt purchase of ship loadout
'''[[API_CancelPurchaseShipLoadout|CancelPurchaseShipLoadout]]'''() -> nil :: Interrupt purchase of ship loadout
'''[[API_ChatLogTemplate|ChatLogTemplate]]'''(string bg, string scrolledbg, function updatecb, string editbg, bool clickable) -> table container :: Create rudimentary chet container. See [[ChatLogTemplate]]


'''[[API_CheckCharProximity|CheckCharProximity]]'''(int dist, charid) -> bool inrange :: Tell if a character at a given distance is within proximity range. The function only returns true once for every character in radar proximity range. Any further checks will return false until the character leaves the range.
'''[[API_CheckCharProximity|CheckCharProximity]]'''(int dist, charid) -> bool inrange :: Tell if a character at a given distance is within proximity range. The function only returns true once for every character in radar proximity range. Any further checks will return false until the character leaves the range.
Line 44: Line 38:


'''[[API_ConnectAddon|ConnectAddon]]'''(int portid, int itemid, function cb) -> bool canconnect :: Attaches the addon ''itemid'' to the active ship in port ''portid''
'''[[API_ConnectAddon|ConnectAddon]]'''(int portid, int itemid, function cb) -> bool canconnect :: Attaches the addon ''itemid'' to the active ship in port ''portid''
'''[[API_CreateBig3DViewMenu|CreateBig3DViewMenu]]'''() -> userdata dialog :: Create [[API_Index#Big3DViewDialog|Big3DViewDialog]] a [[Big3DViewDialog]]
'''[[API_CreateCancelLoadoutMenu|CreateCancelLoadoutMenu]]'''() -> userdata dialog :: Create fullscreen dialog with button and message. See [[MessageDialog]]
'''[[API_CreateCapShipChatTab|CreateCapShipChatTab]]'''() -> userdata box :: Create box with "Ship Com" tab. See [[ChatLogTemplate]]
'''[[API_CreateCapShipFactionInfo|CreateCapShipFactionInfo]]'''() -> userdata box ::
'''[[API_CreateCapShipPDATab|CreateCapShipPDATab]]'''() -> userdata box ::
'''[[API_CreateCapShipRepairTab|CreateCapShipRepairTab]]'''() -> userdata box ::
'''[[API_CreateCapShipTacticalTab|CreateCapShipTacticalTab]]'''() -> userdata box ::
'''[[API_CreateCapShipTurretTab|CreateCapShipTurretTab]]'''() -> userdata box, button :: Create [[CapShipTurretTab]] and the select button
'''[[API_CreateCharCreateFailedMenu|CreateCharCreateFailedMenu]]'''() -> userdata dialog :: Create fullscreen dialog with button and message. See [[MessageDialog]]
The created variant pops up [[API_Index#CharCreateDialog|CharCreateDialog]] after clicking the button
'''[[API_CreateCharCreateMenu|CreateCharCreateMenu]]'''() -> userdata dialog ::
'''[[API_CreateCharSelectFailedMenu|CreateCharSelectFailedMenu]]'''() -> userdata dialog :: Create fullscreen dialog with button and message. See [[MessageDialog]]
The created variant pops up [[API_Index#CharSelectDialog|CharSelectDialog]] after clicking the button
'''[[API_CreateCharSelectMenu|CreateCharSelectMenu]]'''() -> userdata dialog ::


'''[[API_CreateCharacter|CreateCharacter]]'''(int name, int nation) -> nil :: Creates the character of the given nation
'''[[API_CreateCharacter|CreateCharacter]]'''(int name, int nation) -> nil :: Creates the character of the given nation
'''[[API_CreateCharacterPDATab|CreateCharacterPDATab]]'''() -> userdata box, tab1, tab2, tab3 ::
'''[[API_CreateCommPDATab|CreateCommPDATab]]'''() -> userdata box ::
'''[[API_CreateConnectingMenu|CreateConnectingMenu]]'''() -> userdata dialog :: Create fullscreen dialog with button and message. See [[MessageDialog]]
The created variant logs out after clicking the button
'''[[API_CreateCreditsDialog|CreateCreditsDialog]]'''(userdata parent) -> userdata dialog :: Create credits dialog
'''[[API_CreateEULAMenu|CreateEULAMenu]]'''() -> userdata dialog ::
'''[[API_CreateInvalidAmountMenu|CreateInvalidAmountMenu]]'''() -> userdata dialog :: Create fullscreen dialog with button and message. See [[msgdlgtemplate1]]
'''[[API_CreateInventoryPDATab|CreateInventoryPDATab]]'''() -> userdata dialog, tab1, tab2 ::
'''[[API_CreateKilledByPDATab|CreateKilledByPDATab]]'''() -> userdata box ::
'''[[API_CreateKilledPDATab|CreateKilledPDATab]]'''() -> userdata box ::
'''[[API_CreateLoadingMenu|CreateLoadingMenu]]'''() -> userdata dialog ::
'''[[API_CreateLoginDialog|CreateLoginDialog]]'''() -> userdata dialog ::
'''[[API_CreateLoginHelpDialog|CreateLoginHelpDialog]]'''(userdata parent) -> userdata dialog :: Create fullscreen dialog with help text for the login screen and a close button
'''[[API_CreateLowGridPowerDialog|CreateLowGridPowerDialog]]'''() -> userdata dialog :: Create fullscreen dialog with low grid power error
'''[[API_CreateMissionAbortMenu|CreateMissionAbortMenu]]'''() -> userdata dialog ::
'''[[API_CreateMissionPromptMenu|CreateMissionPromptMenu]]'''() -> userdata dialog ::
'''[[API_CreateMissionsPDATab|CreateMissionsPDATab]]'''() -> userdata box, tab1, tab2, tab3, tab4, infobutton ::
'''[[API_CreateNavigationPDATab|CreateNavigationPDATab]]'''() -> userdata box ::
'''[[API_CreateNearbyShipsPDATab|CreateNearbyShipsPDATab]]'''() -> userdata box ::
'''[[API_CreateNewsMenu|CreateNewsMenu]]'''() -> userdata dialog ::
'''[[API_CreateNotEnoughStorageMenu|CreateNotEnoughStorageMenu]]'''() -> userdata dialog :: Create fullscreen dialog with button and message. See [[msgdlgtemplate1]]
'''[[API_CreateNotificationMenu|CreateNotificationMenu]]'''() -> userdata dialog ::
'''[[API_CreateOptionsMenu|CreateOptionsMenu]]'''() -> userdata dialog ::
'''[[API_CreatePDA|CreatePDA]]'''() -> userdata dialog ::
'''[[API_CreatePDATab1|CreatePDATab1]]'''() -> userdata box ::
'''[[API_CreatePVPTab|CreatePVPTab]]'''() -> userdata box ::
'''[[API_CreateQuantityPurchaseMenu|CreateQuantityPurchaseMenu]]'''() -> userdata dialog ::
'''[[API_CreateSensorPDATab|CreateSensorPDATab]]'''() -> userdata box, tab1, tab2, tab3, tab4, tab5 ::
'''[[API_CreateShipCargoPDATab|CreateShipCargoPDATab]]'''() -> userdata box ::
'''[[API_CreateShipPDATab|CreateShipPDATab]]'''() -> userdata box, tab1 ::
'''[[API_CreateStation|CreateStation]]'''() -> userdata dialog ::
'''[[API_CreateStationBlankTab|CreateStationBlankTab]]'''() -> userdata box ::
'''[[API_CreateStationChatTab|CreateStationChatTab]]'''() -> userdata box ::
'''[[API_CreateStationCommerceTab|CreateStationCommerceTab]]'''() -> userdata box ::
'''[[API_CreateStationCommoditiesBuyTab|CreateStationCommoditiesBuyTab]]'''() -> userdata box ::
'''[[API_CreateStationCommoditiesLoadTab|CreateStationCommoditiesLoadTab]]'''() -> userdata box ::
'''[[API_CreateStationCommoditiesSellTab|CreateStationCommoditiesSellTab]]'''() -> userdata box ::
'''[[API_CreateStationCommoditiesTab|CreateStationCommoditiesTab]]'''() -> userdata box ::
'''[[API_CreateStationEquipmentBuyTab|CreateStationEquipmentBuyTab]]'''() -> userdata box ::
'''[[API_CreateStationEquipmentManageTab|CreateStationEquipmentManageTab]]'''() -> userdata box ::
'''[[API_CreateStationEquipmentSellTab|CreateStationEquipmentSellTab]]'''() -> userdata box :: Unused. Creates old equipment sell tab.
'''[[API_CreateStationEquipmentTab|CreateStationEquipmentTab]]'''() -> userdata box ::
'''[[API_CreateStationFactionInfo|CreateStationFactionInfo]]'''() -> userdata dialog :: Create [[StationFactionInfo]]
'''[[API_CreateStationHelpMenu|CreateStationHelpMenu]]'''() -> userdata dialog ::
'''[[API_CreateStationMissionBuyTab|CreateStationMissionBuyTab]]'''() -> userdata box, button ::
'''[[API_CreateStationPDATab|CreateStationPDATab]]'''() -> userdata box ::
'''[[API_CreateStationPortConfigTab|CreateStationPortConfigTab]]'''() -> userdata box ::
'''[[API_CreateStationShipPurchaseTab|CreateStationShipPurchaseTab]]'''() -> userdata box, button ::
'''[[API_CreateStationShipSelectionTab|CreateStationShipSelectionTab]]'''() -> userdata box ::
'''[[API_CreateStationShipStatusTab|CreateStationShipStatusTab]]'''() -> userdata box :: Unused. Creates old ship status tab.
'''[[API_CreateStationVisitsPDATab|CreateStationVisitsPDATab]]'''() -> userdata box ::
'''[[API_CreateStationWelcomeTab|CreateStationWelcomeTab]]'''() -> userdata box ::
'''[[API_CreateStorageRentalDialog|CreateStorageRentalDialog]]'''() -> userdata dialog :: Create storage rental dialog
'''[[API_CreateSurveyMenu|CreateSurveyMenu]]'''() -> userdata dialog ::
'''[[API_CreateTargetInfo|CreateTargetInfo]]'''() -> userdata box ::
'''[[API_CreateVoiceChatOptions|CreateVoiceChatOptions]]'''() -> userdata dialog :: Create Voicechat options dialog


'''[[API_DeleteCharacter|DeleteCharacter]]'''(int slot) -> nil :: Deletes the character in the character slot ''slot''
'''[[API_DeleteCharacter|DeleteCharacter]]'''(int slot) -> nil :: Deletes the character in the character slot ''slot''
Line 196: Line 53:


'''[[API_EnableVoiceChat|EnableVoiceChat]]'''(bool enable) -> nil :: Toggle Voice chat
'''[[API_EnableVoiceChat|EnableVoiceChat]]'''(bool enable) -> nil :: Toggle Voice chat
'''[[API_FactionStandingTemplate|FactionStandingTemplate]]'''(function cb, frame, filler, string expand) -> userdata container :: Creates a container with a list of faction standings of a character. Details: [[FactionStandingTemplate]]
'''[[API_FactionStandingWithInfoTemplate|FactionStandingWithInfoTemplate]]'''() -> userdata container :: Wrapper around [[API_Index#FactionStandingTemplate|FactionStandingTemplate]] that adds faction descriptions to the list.
'''[[API_FadeControl|FadeControl]]'''(userdata control, int timetofade, float startalpha, endalpha, function cb, ...) -> nil :: Fade an iup control by modifying its alpha field. Usually a label.
'''[[API_FadeLookup|FadeLookup]]'''(userdata control) -> table fi :: Get a fade info table of a control that is currently being faded.
'''[[API_FadeStop|FadeStop]]'''(userdata control) -> nil :: Stop fading a control
'''[[API_FillInObjectInfo|FillInObjectInfo]]'''(string name, desc) -> nil :: Put given name and description into the character info dialog
'''[[API_FillInPlayerInfo|FillInPlayerInfo]]'''(int charid) -> nil :: Fill character info dialog with info of given character


'''[[API_FindAndReplaceTags|FindAndReplaceTags]]'''(string text, table matches) -> string ret1 :: Replaces all occurances of with < and > enclosed substrings in ''text'' with matching values from the provided table
'''[[API_FindAndReplaceTags|FindAndReplaceTags]]'''(string text, table matches) -> string ret1 :: Replaces all occurances of with < and > enclosed substrings in ''text'' with matching values from the provided table
Line 307: Line 150:


'''[[API_GetCharacterKillDeaths|GetCharacterKillDeaths]]'''(int charid) -> int kills deaths pks :: get info about kills and deaths. returns your own info if no charid given or a lua error if an invalid one ...
'''[[API_GetCharacterKillDeaths|GetCharacterKillDeaths]]'''(int charid) -> int kills deaths pks :: get info about kills and deaths. returns your own info if no charid given or a lua error if an invalid one ...
'''[[API_GetChatLogReadState|GetChatLogReadState]]'''() -> bool read :: Tell if the general chat log was displayed. [[API_Index#SetChatLogRead|SetChatLogRead]] was called since the last line was added to the log.
'''[[API_GetCurrentChatTab|GetCurrentChatTab]]'''() -> int tab :: Unused. Get The current chat tab (general chat or mission chat)


'''[[API_GetCurrentSectorid|GetCurrentSectorid]]'''() -> int sectorid :: get current sector id
'''[[API_GetCurrentSectorid|GetCurrentSectorid]]'''() -> int sectorid :: get current sector id
Line 410: Line 249:


'''[[API_GetMissionChatLog|GetMissionChatLog]]'''() -> {bool updated, string 1.. } :: get advancement log
'''[[API_GetMissionChatLog|GetMissionChatLog]]'''() -> {bool updated, string 1.. } :: get advancement log
'''[[API_GetMissionLogReadState|GetMissionLogReadState]]'''GetMissiontLogReadState() -> bool read :: Tell if the mission chat/advanmcement log was displayed. [[API_Index#SetMissionLogRead|SetMissionLogRead]] was called since the last line was added to the log.


'''[[API_GetMissionTimers|GetMissionTimers]]'''() -> int time :: get time left on the current mission. may have some functionality for multiple missions
'''[[API_GetMissionTimers|GetMissionTimers]]'''() -> int time :: get time left on the current mission. may have some functionality for multiple missions
Line 464: Line 301:


'''[[API_GetPrimaryShipNameOfPlayer|GetPrimaryShipNameOfPlayer]]'''(int charid) -> string name :: get ship name (type) of provided character
'''[[API_GetPrimaryShipNameOfPlayer|GetPrimaryShipNameOfPlayer]]'''(int charid) -> string name :: get ship name (type) of provided character
'''[[API_GetProfitColor|GetProfitColor]]'''(int price, cost) -> string color :: get color depending on the given prices
'''[[API_GetProfitHexColor|GetProfitHexColor]]'''(int price, cost) -> string color :: get color in hex format depending on the given prices


'''[[API_GetProximityWarningDistance|GetProximityWarningDistance]]'''() -> int dist :: get proxy warnign distance
'''[[API_GetProximityWarningDistance|GetProximityWarningDistance]]'''() -> int dist :: get proxy warnign distance
Line 513: Line 346:


'''[[API_GetStationLocation|GetStationLocation]]'''() -> int stationid :: get the [[stationid]] of the current station  
'''[[API_GetStationLocation|GetStationLocation]]'''() -> int stationid :: get the [[stationid]] of the current station  
'''[[API_GetStationLogReadState|GetStationLogReadState]]'''() -> bool read :: Tell if the stationlog/bar was displayed. [[API_Index#SetStationLogRead|SetStationLogRead]] was called since the last line was added to the log.


'''[[API_GetStationMaxCargo|GetStationMaxCargo]]'''() -> int cargo :: return amount of cargo this station can hold.
'''[[API_GetStationMaxCargo|GetStationMaxCargo]]'''() -> int cargo :: return amount of cargo this station can hold.
Line 565: Line 396:


'''[[API_HasLastShipLoadout|HasLastShipLoadout]]'''() -> bool loadout :: return true if the player has a last ship loadout saved. (see ClearLastShipLoadout)
'''[[API_HasLastShipLoadout|HasLastShipLoadout]]'''() -> bool loadout :: return true if the player has a last ship loadout saved. (see ClearLastShipLoadout)
'''[[API_HelpCharAccom|HelpCharAccom]]''' :: [[helpfunc]]
'''[[API_HelpCharFaction|HelpCharFaction]]''' :: [[helpfunc]]
'''[[API_HelpCharGuild|HelpCharGuild]]''' :: [[helpfunc]]
'''[[API_HelpCharInventory|HelpCharInventory]]''' :: [[helpfunc]]
'''[[API_HelpCharStats|HelpCharStats]]''' :: [[helpfunc]]
'''[[API_HelpCommoditiesAction|HelpCommoditiesAction]]''' :: [[helpfunc]]
'''[[API_HelpGridPower|HelpGridPower]]''' :: [[helpfunc]]
'''[[API_HelpIgnore|HelpIgnore]]''' :: [[helpfunc]]
'''[[API_HelpLargeAddonsAction|HelpLargeAddonsAction]]''' :: [[helpfunc]]
'''[[API_HelpOtherAddonsAction|HelpOtherAddonsAction]]''' :: [[helpfunc]]
'''[[API_HelpPDAAdvancementLog|HelpPDAAdvancementLog]]''' :: [[helpfunc]]
'''[[API_HelpPDAJettison|HelpPDAJettison]]''' :: [[helpfunc]]
'''[[API_HelpPDAKilledByList|HelpPDAKilledByList]]''' :: [[helpfunc]]
'''[[API_HelpPDAKilledList|HelpPDAKilledList]]''' :: [[helpfunc]]
'''[[API_HelpPDAMissionLog|HelpPDAMissionLog]]''' :: [[helpfunc]]
'''[[API_HelpPDAMissionNotes|HelpPDAMissionNotes]]''' :: [[helpfunc]]
'''[[API_HelpPDANearbyShips|HelpPDANearbyShips]]''' :: [[helpfunc]]
'''[[API_HelpPDAPVPList|HelpPDAPVPList]]''' :: [[helpfunc]]
'''[[API_HelpPDAStationVisitsList|HelpPDAStationVisitsList]]''' :: [[helpfunc]]
'''[[API_HelpSellAction|HelpSellAction]]''' :: [[helpfunc]]
'''[[API_HelpSellAddons|HelpSellAddons]]''' :: [[helpfunc]]
'''[[API_HelpSellCommodities|HelpSellCommodities]]''' :: [[helpfunc]]
'''[[API_HelpShipAmmo|HelpShipAmmo]]''' :: [[helpfunc]]
'''[[API_HelpShipCargo|HelpShipCargo]]''' :: [[helpfunc]]
'''[[API_HelpShipEquip|HelpShipEquip]]''' :: [[helpfunc]]
'''[[API_HelpShipGroup|HelpShipGroup]]''' :: [[helpfunc]]
'''[[API_HelpShipPurchase|HelpShipPurchase]]''' :: [[helpfunc]]
'''[[API_HelpShipSelect|HelpShipSelect]]''' :: [[helpfunc]]
'''[[API_HelpShipStatus|HelpShipStatus]]''' :: [[helpfunc]]
'''[[API_HelpSmallAddonsAction|HelpSmallAddonsAction]]''' :: [[helpfunc]]
'''[[API_HelpStationAddonEquip|HelpStationAddonEquip]]''' :: [[helpfunc]]
'''[[API_HelpStationAddonGroups|HelpStationAddonGroups]]''' :: [[helpfunc]]
'''[[API_HelpStationBuddies|HelpStationBuddies]]''' :: [[helpfunc]]
'''[[API_HelpStationMission|HelpStationMission]]''' :: [[helpfunc]]
'''[[API_HelpStationNav|HelpStationNav]]''' :: [[helpfunc]]
'''[[API_HelpStationNews|HelpStationNews]]''' :: [[helpfunc]]
'''[[API_HelpStationWelcome|HelpStationWelcome]]''' :: [[helpfunc]]
'''[[API_HelpSystemNotes|HelpSystemNotes]]''' :: [[helpfunc]]
'''[[API_HelpVoiceChat|HelpVoiceChat]]''' :: [[helpfunc]]
'''[[API_HideAllDialogs|HideAllDialogs]]'''() -> nil :: Hide all dialogs that were shown with [[API_Index#ShowDialog|ShowDialog]] or [[API_Index#PopupDialog|PopupDialog]]
'''[[API_HideDialog|HideDialog]]'''(userdata dialog) -> nil :: Hide a dialog that was shown with [[API_Index#ShowDialog|ShowDialog]] or [[API_Index#PopupDialog|PopupDialog]]
'''[[API_HideTooltip|HideTooltip]]'''() -> nil :: Hide [[API_Index#ToolTip|ToolTip]], the tooltip dialog


'''[[API_IsConnected|IsConnected]]'''() -> bool connected :: return true if the player is connected to the game
'''[[API_IsConnected|IsConnected]]'''() -> bool connected :: return true if the player is connected to the game
Line 723: Line 470:


'''[[API_PlayerInventoryPairs|PlayerInventoryPairs]]'''() -> int itemid table iteminfo :: Iterator function that returns information about an item in the players inventory each time it is called. works like pairs()
'''[[API_PlayerInventoryPairs|PlayerInventoryPairs]]'''() -> int itemid table iteminfo :: Iterator function that returns information about an item in the players inventory each time it is called. works like pairs()
'''[[API_PopupDialog|PopupDialog]]'''(userdata dialog, int x, y) -> nil :: Wrapper around [[iup#Popup|iup.Popup]] that allows the dialog to be closed with [[API_Index#HideDialog|HideDialog]] or [[API_Index#HideAllDialogs|HideAllDialogs]]


'''[[API_PrintJoinUsage|PrintJoinUsage]]'''() -> nil :: prints how to use /join to the chatarea
'''[[API_PrintJoinUsage|PrintJoinUsage]]'''() -> nil :: prints how to use /join to the chatarea
Line 826: Line 571:


'''[[API_ShouldTutorialRun|ShouldTutorialRun]]'''() -> bool tut :: tell if the player has done the tutorial
'''[[API_ShouldTutorialRun|ShouldTutorialRun]]'''() -> bool tut :: tell if the player has done the tutorial
'''[[API_ShowDialog|ShowDialog]]'''(userdata dialog, int x, y) -> nil :: Wrapper around [[iup#Show|iup.Show]] that allows the dialog to be closed with [[API_Index#HideDialog|HideDialog]] or [[API_Index#HideAllDialogs|HideAllDialogs]]
'''[[API_ShowTooltip|ShowTooltip]]'''(int x, y, string text) -> nil :: Show the [[API_Index#ToolTip|ToolTip]] the tooltip dialog with the given text


'''[[API_SplitSectorID|SplitSectorID]]'''(int sectorid) -> int systemid sectorh sectorv  :: split up a sectorid into systemid and axis on the system grid  
'''[[API_SplitSectorID|SplitSectorID]]'''(int sectorid) -> int systemid sectorh sectorv  :: split up a sectorid into systemid and axis on the system grid  
Line 842: Line 583:


'''[[API_StationSellItem|StationSellItem]]'''(userdata button, table item, int quantity, function cb) -> nil :: Sell items with aconfirmation dialog
'''[[API_StationSellItem|StationSellItem]]'''(userdata button, table item, int quantity, function cb) -> nil :: Sell items with aconfirmation dialog
'''[[API_StopTutorial|StopTutorial]]'''() -> nil :: does nothing..


'''[[API_StrTable|StrTable]]'''StopTutorial() -> nil :: seems to be another serialisation function. similar (the same?) to splickle
'''[[API_StrTable|StrTable]]'''StopTutorial() -> nil :: seems to be another serialisation function. similar (the same?) to splickle
Line 852: Line 591:


'''[[API_TabCompleteName|TabCompleteName]]'''(string name) -> string completename :: Attempts to fill out name with the best match the client has seen since startup. If TabCompleteName cannot find a match for name it returns nil, otherwise, completename will be a string containing the best match.
'''[[API_TabCompleteName|TabCompleteName]]'''(string name) -> string completename :: Attempts to fill out name with the best match the client has seen since startup. If TabCompleteName cannot find a match for name it returns nil, otherwise, completename will be a string containing the best match.
'''[[API_TutorialEnd|TutorialEnd]]'''() -> nil :: finish up the tutorial
'''[[API_TutorialPart1|TutorialPart1]]'''() -> nil :: Launch a tutorial segment
'''[[API_TutorialPart2|TutorialPart2]]'''() -> nil :: Launch a tutorial segment
'''[[API_TutorialPart3|TutorialPart3]]'''() -> nil :: Launch a tutorial segment
'''[[API_TutorialPart4|TutorialPart4]]'''() -> nil :: Launch a tutorial segment
'''[[API_TutorialPart5|TutorialPart5]]'''() -> nil :: Launch a tutorial segment
'''[[API_TutorialPart6|TutorialPart6]]'''() -> nil :: Launch a tutorial segment
'''[[API_TutorialPart7|TutorialPart7]]'''() -> nil :: Launch a tutorial segment
'''[[API_TutorialPart8|TutorialPart8]]'''() -> nil :: Launch a tutorial segment
'''[[API_TutorialPart9|TutorialPart9]]'''() -> nil :: Launch a tutorial segment
'''[[API_TutorialPart10|TutorialPart10]]'''() -> nil :: Launch a tutorial segment
'''[[API_TutorialPart11|TutorialPart11]]'''() -> nil :: Launch a tutorial segment
'''[[API_TutorialPart12|TutorialPart12]]'''() -> nil :: Launch a tutorial segment
'''[[API_TutorialPart13|TutorialPart13]]'''() -> nil :: Launch a tutorial segment


'''[[API_UnloadCargo|UnloadCargo]]'''({{int itemid, int quantity} ..}, function cb) -> nil :: Unload cargo items and quantities according to the provided table  
'''[[API_UnloadCargo|UnloadCargo]]'''({{int itemid, int quantity} ..}, function cb) -> nil :: Unload cargo items and quantities according to the provided table  
Line 890: Line 601:


'''[[API_UnrentStorage|UnrentStorage]]'''(int storage) -> nil :: Unrent storage space at the current station.
'''[[API_UnrentStorage|UnrentStorage]]'''(int storage) -> nil :: Unrent storage space at the current station.
'''[[API_UpdateFade|UpdateFade]]'''(float delta) -> nil :: Do a fade step on controls registered with [[API_index#FadeControl|FadeControl]]


'''[[API_XMLTagToString|XMLTagToString]]'''() -> nil :: might the reverse of ParseXML
'''[[API_XMLTagToString|XMLTagToString]]'''() -> nil :: might the reverse of ParseXML
Line 902: Line 611:


'''[[API_calc_health_color|calc_health_color]]'''(float health, int alpha, mode) -> string color :: Create an iup color string corresponding to the given health
'''[[API_calc_health_color|calc_health_color]]'''(float health, int alpha, mode) -> string color :: Create an iup color string corresponding to the given health
'''[[API_chatareatemplate|chatareatemplate]]'''(string statontabname, bool expanded) -> table container :: create old style chatarea that combines general, mission and station log. the container seems to be incompatible with the [[API_Index#chatareatemplate2|chatareatemplate2]] based maximized chat containers which breaks the maximize button
'''[[API_chatareatemplate2|chatareatemplate2]]'''(bool maximized) -> userdata box :: create a chatarea control. wrapper around [[API_Index#ChatLogTemplate|ChatLogTemplate]]
'''[[API_clear_accomlistbox|clear_accomlistbox]]'''(userdata control, table itemlist) -> int selection :: Clear an accomplishment list control. See: [[API_index#AccomplishmentTemplate|AccomplishmentTemplate]]
'''[[API_clear_listbox|clear_listbox]]'''(userdata control, table itemlist) -> int selection :: Clear a list control


'''[[API_clearscene|clearscene]]'''() -> nil :: removes al objects from the game world
'''[[API_clearscene|clearscene]]'''() -> nil :: removes al objects from the game world
'''[[API_create_char_guild_tab|create_char_guild_tab]]'''(bool sub) -> userdata box :: Create guild tab
'''[[API_create_char_inventory_tab|create_char_inventory_tab]]'''create_char_guild_tab(bool expand_local_branches, show_prices, showsellbutton) -> userdata box, tree :: Create inventory tab
'''[[API_create_jettison_tab|create_jettison_tab]]'''() -> userdata box ::
'''[[API_create_ship_group_template|create_ship_group_template]]'''(table iconlist, bool sub) -> userdata box :: Create weapon groups tab


'''[[API_collectgarbage|collectgarbage]]''' :: [http://www.lua.org/manual/5.0/manual.html#5.1]
'''[[API_collectgarbage|collectgarbage]]''' :: [http://www.lua.org/manual/5.0/manual.html#5.1]
Line 938: Line 631:


'''[[API_error|error]]''' :: [http://www.lua.org/manual/5.0/manual.html#5.1]
'''[[API_error|error]]''' :: [http://www.lua.org/manual/5.0/manual.html#5.1]
'''[[API_factioncontroltemplate3|factioncontroltemplate3]]'''(userdata frame, function cb, float font) -> userdata container :: Create a fancy progressbar/faction standing indicator


'''[[API_factionfriendlyness|factionfriendlyness]]'''(int standing) -> string name :: get string that represents the given faction standing  
'''[[API_factionfriendlyness|factionfriendlyness]]'''(int standing) -> string name :: get string that represents the given faction standing  
Line 946: Line 637:


'''[[API_factionfriendlynessrange|factionfriendlynessrange]]'''(int standing) -> float range :: get progress within the current faction standing level  
'''[[API_factionfriendlynessrange|factionfriendlynessrange]]'''(int standing) -> float range :: get progress within the current faction standing level  
'''[[API_fill_accomlistbox|fill_accomlistbox]]'''(userdata control, table itemlist, function setup_cb, click_cb) -> table dialoglist :: fill an accomplishement listbox with [[accomlistsubdialog]]s according to given values. normally called from [[API_Index#AccomplishmentTemplate2|AccomplishmentTemplate2]]
'''[[API_fill_listbox|fill_listbox]]'''(userdata control, table itemlist, int curselindex, function setup_cb, bool show_quantity, show_price) -> table dialoglist :: fill a listbox with [[listsubdialog]]s according to given values


'''[[API_fillModesDropdown|fillModesDropdown]]'''() -> ? :: no clue. fill some kind of drop down menu(?)
'''[[API_fillModesDropdown|fillModesDropdown]]'''() -> ? :: no clue. fill some kind of drop down menu(?)
Line 958: Line 645:


'''[[API_generalprint|generalprint]]'''(string str) -> nil :: print given string to the chat area via CHAT_MSG_PRINT event. Results is printed in the active channel text color.
'''[[API_generalprint|generalprint]]'''(string str) -> nil :: print given string to the chat area via CHAT_MSG_PRINT event. Results is printed in the active channel text color.
'''[[API_get_itemdlg|get_itemdlg]]'''(bool showquantity, showprice) -> table dialog :: Get a new [[listsubdialog]] or recycle one from the cache
'''[[API_get_jettisonitemdlg|get_jettisonitemdlg]]'''(int itemid) -> userdata dialog :: Get a new [[jettisonlistsubdialog]] or recycle one from the cache
'''[[API_getheight|getheight]]'''(userdata control) -> int height :: Get height of an iup control
'''[[API_getwidth|getwidth]]'''(userdata control) -> int width :: Get width of an iup control
'''[[API_guildaccessdialogtemplate|guildaccessdialogtemplate]]'''() -> userdata dialog :: create guild access dialog
'''[[API_guildactivitylogdialogtemplate|guildactivitylogdialogtemplate]]'''() -> userdata dialog :: create guild activity dialog
'''[[API_guildbanklogdialogtemplate|guildbanklogdialogtemplate]]'''() -> userdata dialog :: create guild bank dialog


'''[[API_hextorgb|hextorgb]]'''(string hexcolors) -> string deccolors :: Convert hexadecimal formated color string into a decimal one used by [[iup]]
'''[[API_hextorgb|hextorgb]]'''(string hexcolors) -> string deccolors :: Convert hexadecimal formated color string into a decimal one used by [[iup]]
Line 988: Line 661:


'''[[API_log_print|log_print]]'''(string str) -> nil :: Writes string to the errors.log
'''[[API_log_print|log_print]]'''(string str) -> nil :: Writes string to the errors.log
'''[[API_msgdlgtemplate1|msgdlgtemplate1]]'''(string msg, buttontext, function button_cb, string size, posx, posy, bgcolor) -> userdata dialog :: Create fullscreen dialog with button and message
'''[[API_msgdlgtemplate1a|msgdlgtemplate1a]]'''(string msg, size, posx, posy, userdata control, string bgcolor) -> userdata dialog :: Create a dialog and optionally disable input to the background except to the given control.
Note: if a control is given display the dialog with :show_all() if not use [[API_Index#ShowDialog|ShowDialog]] or :show()
'''[[API_msgdlgtemplate1aDone|msgdlgtemplate1aDone]]'''(function button_cb, string msg, size, posx, posy, userdata control, string bgcolor) -> userdata dialog :: Same as [[API_Index#msgdlgtemplate1a|msgdlgtemplate1a]] but with a "Close" button
'''[[API_msgdlgtemplate1aNext|msgdlgtemplate1aNext]]'''(function button_cb, string msg, size, posx, posy, userdata control, string bgcolor) -> userdata dialog :: Same as [[API_Index#msgdlgtemplate1a|msgdlgtemplate1a]] but with a "Next" button
'''[[API_msgdlgtemplate2|msgdlgtemplate2]]'''(string msg, ltitle, function lcb, string rtitle, function rcb, string bgcolor, alignment) -> userdata dialog :: Create a fullscreen dialog with two buttons and a message
'''[[API_msgdlgtemplate2withcheck|msgdlgtemplate2withcheck]]'''(string msg, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons, a checkbox and a message
'''[[API_msgpromptdlgtemplate2|msgpromptdlgtemplate2]]'''(string msg, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons, an entry field and a message
'''[[API_msgpromptdlgtemplate2|msgpromptdlgtemplate2]]'''(string msg, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons, an entry field and a message
'''[[API_msgpromptdlgtemplate2lines|msgpromptdlgtemplate2lines]]'''(string msg, msg2, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons, two entry fields and two messages
'''[[API_multidlgtemplate2|multidlgtemplate2]]'''(string msg, msg2, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons and two messages (one in a [[iup#multiline|multiline]] control)


'''[[API_next|next]]''' :: [http://www.lua.org/manual/5.0/manual.html#5.1]
'''[[API_next|next]]''' :: [http://www.lua.org/manual/5.0/manual.html#5.1]
Line 1,065: Line 717:
functions to manipulate the bitwise operations
functions to manipulate the bitwise operations


= UI =
= Interface =
 
== Functions ==
 
'''[[API_AccomplishmentTemplate|AccomplishmentTemplate]]'''(function cb(string desc)) -> userdate box :: Create box with accomplishment icons (targetinfo dialog). see: [[AccomplishmentTemplate]]
 
'''[[API_AccomplishmentTemplate2|AccomplishmentTemplate2]]'''(function cb(string desc, int type, level)) -> userdate box :: Create list with accomplishment icons (pda playerinfo dialog). see: [[AccomplishmentTemplate]]
 
'''[[API_ChatLogTemplate|ChatLogTemplate]]'''(string bg, string scrolledbg, function updatecb, string editbg, bool clickable) -> table container :: Create rudimentary chet container. See [[ChatLogTemplate]]
 
'''[[API_CreateBig3DViewMenu|CreateBig3DViewMenu]]'''() -> userdata dialog :: Create [[API_Index#Big3DViewDialog|Big3DViewDialog]] a [[Big3DViewDialog]]
 
'''[[API_CreateCancelLoadoutMenu|CreateCancelLoadoutMenu]]'''() -> userdata dialog :: Create fullscreen dialog with button and message. See [[MessageDialog]]
 
'''[[API_CreateCapShipChatTab|CreateCapShipChatTab]]'''() -> userdata box :: Create box with "Ship Com" tab. See [[ChatLogTemplate]]
 
'''[[API_CreateCapShipFactionInfo|CreateCapShipFactionInfo]]'''() -> userdata box ::
 
'''[[API_CreateCapShipPDATab|CreateCapShipPDATab]]'''() -> userdata box ::
 
'''[[API_CreateCapShipRepairTab|CreateCapShipRepairTab]]'''() -> userdata box ::
 
'''[[API_CreateCapShipTacticalTab|CreateCapShipTacticalTab]]'''() -> userdata box ::
 
'''[[API_CreateCapShipTurretTab|CreateCapShipTurretTab]]'''() -> userdata box, button :: Create [[CapShipTurretTab]] and the select button
 
'''[[API_CreateCharCreateFailedMenu|CreateCharCreateFailedMenu]]'''() -> userdata dialog :: Create fullscreen dialog with button and message. See [[MessageDialog]]
The created variant pops up [[API_Index#CharCreateDialog|CharCreateDialog]] after clicking the button
 
'''[[API_CreateCharCreateMenu|CreateCharCreateMenu]]'''() -> userdata dialog ::
 
'''[[API_CreateCharSelectFailedMenu|CreateCharSelectFailedMenu]]'''() -> userdata dialog :: Create fullscreen dialog with button and message. See [[MessageDialog]]
The created variant pops up [[API_Index#CharSelectDialog|CharSelectDialog]] after clicking the button
 
'''[[API_CreateCharSelectMenu|CreateCharSelectMenu]]'''() -> userdata dialog ::
 
'''[[API_CreateCharacterPDATab|CreateCharacterPDATab]]'''() -> userdata box, tab1, tab2, tab3 ::
 
'''[[API_CreateCommPDATab|CreateCommPDATab]]'''() -> userdata box ::
 
'''[[API_CreateConnectingMenu|CreateConnectingMenu]]'''() -> userdata dialog :: Create fullscreen dialog with button and message. See [[MessageDialog]]
The created variant logs out after clicking the button
 
'''[[API_CreateCreditsDialog|CreateCreditsDialog]]'''(userdata parent) -> userdata dialog :: Create credits dialog
 
'''[[API_CreateEULAMenu|CreateEULAMenu]]'''() -> userdata dialog ::
 
'''[[API_CreateInvalidAmountMenu|CreateInvalidAmountMenu]]'''() -> userdata dialog :: Create fullscreen dialog with button and message. See [[msgdlgtemplate1]]
 
'''[[API_CreateInventoryPDATab|CreateInventoryPDATab]]'''() -> userdata dialog, tab1, tab2 ::
 
'''[[API_CreateKilledByPDATab|CreateKilledByPDATab]]'''() -> userdata box ::
 
'''[[API_CreateKilledPDATab|CreateKilledPDATab]]'''() -> userdata box ::
 
'''[[API_CreateLoadingMenu|CreateLoadingMenu]]'''() -> userdata dialog ::
 
'''[[API_CreateLoginDialog|CreateLoginDialog]]'''() -> userdata dialog ::
 
'''[[API_CreateLoginHelpDialog|CreateLoginHelpDialog]]'''(userdata parent) -> userdata dialog :: Create fullscreen dialog with help text for the login screen and a close button
 
'''[[API_CreateLowGridPowerDialog|CreateLowGridPowerDialog]]'''() -> userdata dialog :: Create fullscreen dialog with low grid power error
 
'''[[API_CreateMissionAbortMenu|CreateMissionAbortMenu]]'''() -> userdata dialog ::
 
'''[[API_CreateMissionPromptMenu|CreateMissionPromptMenu]]'''() -> userdata dialog ::
 
'''[[API_CreateMissionsPDATab|CreateMissionsPDATab]]'''() -> userdata box, tab1, tab2, tab3, tab4, infobutton ::
 
'''[[API_CreateNavigationPDATab|CreateNavigationPDATab]]'''() -> userdata box ::
 
'''[[API_CreateNearbyShipsPDATab|CreateNearbyShipsPDATab]]'''() -> userdata box ::
 
'''[[API_CreateNewsMenu|CreateNewsMenu]]'''() -> userdata dialog ::
 
'''[[API_CreateNotEnoughStorageMenu|CreateNotEnoughStorageMenu]]'''() -> userdata dialog :: Create fullscreen dialog with button and message. See [[msgdlgtemplate1]]
 
'''[[API_CreateNotificationMenu|CreateNotificationMenu]]'''() -> userdata dialog ::
 
'''[[API_CreateOptionsMenu|CreateOptionsMenu]]'''() -> userdata dialog ::
 
'''[[API_CreatePDA|CreatePDA]]'''() -> userdata dialog ::
 
'''[[API_CreatePDATab1|CreatePDATab1]]'''() -> userdata box ::
 
'''[[API_CreatePVPTab|CreatePVPTab]]'''() -> userdata box ::
 
'''[[API_CreateQuantityPurchaseMenu|CreateQuantityPurchaseMenu]]'''() -> userdata dialog ::
 
'''[[API_CreateSensorPDATab|CreateSensorPDATab]]'''() -> userdata box, tab1, tab2, tab3, tab4, tab5 ::
 
'''[[API_CreateShipCargoPDATab|CreateShipCargoPDATab]]'''() -> userdata box ::
 
'''[[API_CreateShipPDATab|CreateShipPDATab]]'''() -> userdata box, tab1 ::
 
'''[[API_CreateStation|CreateStation]]'''() -> userdata dialog ::
 
'''[[API_CreateStationBlankTab|CreateStationBlankTab]]'''() -> userdata box ::
 
'''[[API_CreateStationChatTab|CreateStationChatTab]]'''() -> userdata box ::
 
'''[[API_CreateStationCommerceTab|CreateStationCommerceTab]]'''() -> userdata box ::
 
'''[[API_CreateStationCommoditiesBuyTab|CreateStationCommoditiesBuyTab]]'''() -> userdata box ::
 
'''[[API_CreateStationCommoditiesLoadTab|CreateStationCommoditiesLoadTab]]'''() -> userdata box ::
 
'''[[API_CreateStationCommoditiesSellTab|CreateStationCommoditiesSellTab]]'''() -> userdata box ::
 
'''[[API_CreateStationCommoditiesTab|CreateStationCommoditiesTab]]'''() -> userdata box ::
 
'''[[API_CreateStationEquipmentBuyTab|CreateStationEquipmentBuyTab]]'''() -> userdata box ::
 
'''[[API_CreateStationEquipmentManageTab|CreateStationEquipmentManageTab]]'''() -> userdata box ::
 
'''[[API_CreateStationEquipmentSellTab|CreateStationEquipmentSellTab]]'''() -> userdata box :: Unused. Creates old equipment sell tab.
 
'''[[API_CreateStationEquipmentTab|CreateStationEquipmentTab]]'''() -> userdata box ::
 
'''[[API_CreateStationFactionInfo|CreateStationFactionInfo]]'''() -> userdata dialog :: Create [[StationFactionInfo]]
 
'''[[API_CreateStationHelpMenu|CreateStationHelpMenu]]'''() -> userdata dialog ::
 
'''[[API_CreateStationMissionBuyTab|CreateStationMissionBuyTab]]'''() -> userdata box, button ::
 
'''[[API_CreateStationPDATab|CreateStationPDATab]]'''() -> userdata box ::
 
'''[[API_CreateStationPortConfigTab|CreateStationPortConfigTab]]'''() -> userdata box ::
 
'''[[API_CreateStationShipPurchaseTab|CreateStationShipPurchaseTab]]'''() -> userdata box, button ::
 
'''[[API_CreateStationShipSelectionTab|CreateStationShipSelectionTab]]'''() -> userdata box ::
 
'''[[API_CreateStationShipStatusTab|CreateStationShipStatusTab]]'''() -> userdata box :: Unused. Creates old ship status tab.
 
'''[[API_CreateStationVisitsPDATab|CreateStationVisitsPDATab]]'''() -> userdata box ::
 
'''[[API_CreateStationWelcomeTab|CreateStationWelcomeTab]]'''() -> userdata box ::
 
'''[[API_CreateStorageRentalDialog|CreateStorageRentalDialog]]'''() -> userdata dialog :: Create storage rental dialog
 
'''[[API_CreateSurveyMenu|CreateSurveyMenu]]'''() -> userdata dialog ::
 
'''[[API_CreateTargetInfo|CreateTargetInfo]]'''() -> userdata box ::
 
'''[[API_CreateVoiceChatOptions|CreateVoiceChatOptions]]'''() -> userdata dialog :: Create Voicechat options dialog
 
'''[[API_FactionStandingTemplate|FactionStandingTemplate]]'''(function cb, frame, filler, string expand) -> userdata container :: Creates a container with a list of faction standings of a character. Details: [[FactionStandingTemplate]]
 
'''[[API_FactionStandingWithInfoTemplate|FactionStandingWithInfoTemplate]]'''() -> userdata container :: Wrapper around [[API_Index#FactionStandingTemplate|FactionStandingTemplate]] that adds faction descriptions to the list.
 
'''[[API_FadeControl|FadeControl]]'''(userdata control, int timetofade, float startalpha, endalpha, function cb, ...) -> nil :: Fade an iup control by modifying its alpha field. Usually a label.
 
'''[[API_FadeLookup|FadeLookup]]'''(userdata control) -> table fi :: Get a fade info table of a control that is currently being faded.
 
'''[[API_FadeStop|FadeStop]]'''(userdata control) -> nil :: Stop fading a control
 
'''[[API_FillInObjectInfo|FillInObjectInfo]]'''(string name, desc) -> nil :: Put given name and description into the character info dialog
 
'''[[API_FillInPlayerInfo|FillInPlayerInfo]]'''(int charid) -> nil :: Fill character info dialog with info of given character
 
'''[[API_GetChatLogReadState|GetChatLogReadState]]'''() -> bool read :: Tell if the general chat log was displayed. [[API_Index#SetChatLogRead|SetChatLogRead]] was called since the last line was added to the log.
 
'''[[API_GetCurrentChatTab|GetCurrentChatTab]]'''() -> int tab :: Unused. Get The current chat tab (general chat or mission chat)
 
'''[[API_GetMissionLogReadState|GetMissionLogReadState]]'''GetMissiontLogReadState() -> bool read :: Tell if the mission chat/advanmcement log was displayed. [[API_Index#SetMissionLogRead|SetMissionLogRead]] was called since the last line was added to the log.
 
'''[[API_GetProfitColor|GetProfitColor]]'''(int price, cost) -> string color :: get color depending on the given prices
 
'''[[API_GetProfitHexColor|GetProfitHexColor]]'''(int price, cost) -> string color :: get color in hex format depending on the given prices
 
'''[[API_GetStationLogReadState|GetStationLogReadState]]'''() -> bool read :: Tell if the stationlog/bar was displayed. [[API_Index#SetStationLogRead|SetStationLogRead]] was called since the last line was added to the log.
 
'''[[API_HelpCharAccom|HelpCharAccom]]''' :: [[helpfunc]]
 
'''[[API_HelpCharFaction|HelpCharFaction]]''' :: [[helpfunc]]
 
'''[[API_HelpCharGuild|HelpCharGuild]]''' :: [[helpfunc]]
 
'''[[API_HelpCharInventory|HelpCharInventory]]''' :: [[helpfunc]]
 
'''[[API_HelpCharStats|HelpCharStats]]''' :: [[helpfunc]]
 
'''[[API_HelpCommoditiesAction|HelpCommoditiesAction]]''' :: [[helpfunc]]
 
'''[[API_HelpGridPower|HelpGridPower]]''' :: [[helpfunc]]
 
'''[[API_HelpIgnore|HelpIgnore]]''' :: [[helpfunc]]
 
'''[[API_HelpLargeAddonsAction|HelpLargeAddonsAction]]''' :: [[helpfunc]]
 
'''[[API_HelpOtherAddonsAction|HelpOtherAddonsAction]]''' :: [[helpfunc]]
 
'''[[API_HelpPDAAdvancementLog|HelpPDAAdvancementLog]]''' :: [[helpfunc]]
 
'''[[API_HelpPDAJettison|HelpPDAJettison]]''' :: [[helpfunc]]
 
'''[[API_HelpPDAKilledByList|HelpPDAKilledByList]]''' :: [[helpfunc]]
 
'''[[API_HelpPDAKilledList|HelpPDAKilledList]]''' :: [[helpfunc]]
 
'''[[API_HelpPDAMissionLog|HelpPDAMissionLog]]''' :: [[helpfunc]]
 
'''[[API_HelpPDAMissionNotes|HelpPDAMissionNotes]]''' :: [[helpfunc]]
 
'''[[API_HelpPDANearbyShips|HelpPDANearbyShips]]''' :: [[helpfunc]]
 
'''[[API_HelpPDAPVPList|HelpPDAPVPList]]''' :: [[helpfunc]]
 
'''[[API_HelpPDAStationVisitsList|HelpPDAStationVisitsList]]''' :: [[helpfunc]]
 
'''[[API_HelpSellAction|HelpSellAction]]''' :: [[helpfunc]]
 
'''[[API_HelpSellAddons|HelpSellAddons]]''' :: [[helpfunc]]
 
'''[[API_HelpSellCommodities|HelpSellCommodities]]''' :: [[helpfunc]]
 
'''[[API_HelpShipAmmo|HelpShipAmmo]]''' :: [[helpfunc]]
 
'''[[API_HelpShipCargo|HelpShipCargo]]''' :: [[helpfunc]]
 
'''[[API_HelpShipEquip|HelpShipEquip]]''' :: [[helpfunc]]
 
'''[[API_HelpShipGroup|HelpShipGroup]]''' :: [[helpfunc]]
 
'''[[API_HelpShipPurchase|HelpShipPurchase]]''' :: [[helpfunc]]
 
'''[[API_HelpShipSelect|HelpShipSelect]]''' :: [[helpfunc]]
 
'''[[API_HelpShipStatus|HelpShipStatus]]''' :: [[helpfunc]]
 
'''[[API_HelpSmallAddonsAction|HelpSmallAddonsAction]]''' :: [[helpfunc]]
 
'''[[API_HelpStationAddonEquip|HelpStationAddonEquip]]''' :: [[helpfunc]]
 
'''[[API_HelpStationAddonGroups|HelpStationAddonGroups]]''' :: [[helpfunc]]
 
'''[[API_HelpStationBuddies|HelpStationBuddies]]''' :: [[helpfunc]]
 
'''[[API_HelpStationMission|HelpStationMission]]''' :: [[helpfunc]]
 
'''[[API_HelpStationNav|HelpStationNav]]''' :: [[helpfunc]]
 
'''[[API_HelpStationNews|HelpStationNews]]''' :: [[helpfunc]]
 
'''[[API_HelpStationWelcome|HelpStationWelcome]]''' :: [[helpfunc]]
 
'''[[API_HelpSystemNotes|HelpSystemNotes]]''' :: [[helpfunc]]
 
'''[[API_HelpVoiceChat|HelpVoiceChat]]''' :: [[helpfunc]]
 
'''[[API_HideAllDialogs|HideAllDialogs]]'''() -> nil :: Hide all dialogs that were shown with [[API_Index#ShowDialog|ShowDialog]] or [[API_Index#PopupDialog|PopupDialog]]
 
'''[[API_HideDialog|HideDialog]]'''(userdata dialog) -> nil :: Hide a dialog that was shown with [[API_Index#ShowDialog|ShowDialog]] or [[API_Index#PopupDialog|PopupDialog]]
 
'''[[API_HideTooltip|HideTooltip]]'''() -> nil :: Hide [[API_Index#ToolTip|ToolTip]], the tooltip dialog
 
'''[[API_PopupDialog|PopupDialog]]'''(userdata dialog, int x, y) -> nil :: Wrapper around [[iup#Popup|iup.Popup]] that allows the dialog to be closed with [[API_Index#HideDialog|HideDialog]] or [[API_Index#HideAllDialogs|HideAllDialogs]]
 
'''[[API_ShowDialog|ShowDialog]]'''(userdata dialog, int x, y) -> nil :: Wrapper around [[iup#Show|iup.Show]] that allows the dialog to be closed with [[API_Index#HideDialog|HideDialog]] or [[API_Index#HideAllDialogs|HideAllDialogs]]
 
'''[[API_ShowTooltip|ShowTooltip]]'''(int x, y, string text) -> nil :: Show the [[API_Index#ToolTip|ToolTip]] the tooltip dialog with the given text
 
'''[[API_StopTutorial|StopTutorial]]'''() -> nil :: does nothing..
 
'''[[API_TutorialEnd|TutorialEnd]]'''() -> nil :: finish up the tutorial
 
'''[[API_TutorialPart1|TutorialPart1]]'''() -> nil :: Launch a tutorial segment
 
'''[[API_TutorialPart2|TutorialPart2]]'''() -> nil :: Launch a tutorial segment
 
'''[[API_TutorialPart3|TutorialPart3]]'''() -> nil :: Launch a tutorial segment
 
'''[[API_TutorialPart4|TutorialPart4]]'''() -> nil :: Launch a tutorial segment
 
'''[[API_TutorialPart5|TutorialPart5]]'''() -> nil :: Launch a tutorial segment
 
'''[[API_TutorialPart6|TutorialPart6]]'''() -> nil :: Launch a tutorial segment
 
'''[[API_TutorialPart7|TutorialPart7]]'''() -> nil :: Launch a tutorial segment
 
'''[[API_TutorialPart8|TutorialPart8]]'''() -> nil :: Launch a tutorial segment
 
'''[[API_TutorialPart9|TutorialPart9]]'''() -> nil :: Launch a tutorial segment
 
'''[[API_TutorialPart10|TutorialPart10]]'''() -> nil :: Launch a tutorial segment
 
'''[[API_TutorialPart11|TutorialPart11]]'''() -> nil :: Launch a tutorial segment
 
'''[[API_TutorialPart12|TutorialPart12]]'''() -> nil :: Launch a tutorial segment
 
'''[[API_TutorialPart13|TutorialPart13]]'''() -> nil :: Launch a tutorial segment
 
'''[[API_UpdateFade|UpdateFade]]'''(float delta) -> nil :: Do a fade step on controls registered with [[API_index#FadeControl|FadeControl]]
 
'''[[API_chatareatemplate|chatareatemplate]]'''(string statontabname, bool expanded) -> table container :: create old style chatarea that combines general, mission and station log. the container seems to be incompatible with the [[API_Index#chatareatemplate2|chatareatemplate2]] based maximized chat containers which breaks the maximize button
 
'''[[API_chatareatemplate2|chatareatemplate2]]'''(bool maximized) -> userdata box :: create a chatarea control. wrapper around [[API_Index#ChatLogTemplate|ChatLogTemplate]]
 
'''[[API_clear_accomlistbox|clear_accomlistbox]]'''(userdata control, table itemlist) -> int selection :: Clear an accomplishment list control. See: [[API_index#AccomplishmentTemplate|AccomplishmentTemplate]]
 
'''[[API_clear_listbox|clear_listbox]]'''(userdata control, table itemlist) -> int selection :: Clear a list control
 
'''[[API_create_char_guild_tab|create_char_guild_tab]]'''(bool sub) -> userdata box :: Create guild tab
 
'''[[API_create_char_inventory_tab|create_char_inventory_tab]]'''create_char_guild_tab(bool expand_local_branches, show_prices, showsellbutton) -> userdata box, tree :: Create inventory tab
 
'''[[API_create_jettison_tab|create_jettison_tab]]'''() -> userdata box ::
 
'''[[API_create_ship_group_template|create_ship_group_template]]'''(table iconlist, bool sub) -> userdata box :: Create weapon groups tab
 
'''[[API_factioncontroltemplate3|factioncontroltemplate3]]'''(userdata frame, function cb, float font) -> userdata container :: Create a fancy progressbar/faction standing indicator
 
'''[[API_fill_accomlistbox|fill_accomlistbox]]'''(userdata control, table itemlist, function setup_cb, click_cb) -> table dialoglist :: fill an accomplishement listbox with [[accomlistsubdialog]]s according to given values. normally called from [[API_Index#AccomplishmentTemplate2|AccomplishmentTemplate2]]
 
'''[[API_fill_listbox|fill_listbox]]'''(userdata control, table itemlist, int curselindex, function setup_cb, bool show_quantity, show_price) -> table dialoglist :: fill a listbox with [[listsubdialog]]s according to given values
 
'''[[API_get_itemdlg|get_itemdlg]]'''(bool showquantity, showprice) -> table dialog :: Get a new [[listsubdialog]] or recycle one from the cache
 
'''[[API_get_jettisonitemdlg|get_jettisonitemdlg]]'''(int itemid) -> userdata dialog :: Get a new [[jettisonlistsubdialog]] or recycle one from the cache
 
'''[[API_getheight|getheight]]'''(userdata control) -> int height :: Get height of an iup control
 
'''[[API_getwidth|getwidth]]'''(userdata control) -> int width :: Get width of an iup control
 
'''[[API_guildaccessdialogtemplate|guildaccessdialogtemplate]]'''() -> userdata dialog :: create guild access dialog
 
'''[[API_guildactivitylogdialogtemplate|guildactivitylogdialogtemplate]]'''() -> userdata dialog :: create guild activity dialog
 
'''[[API_guildbanklogdialogtemplate|guildbanklogdialogtemplate]]'''() -> userdata dialog :: create guild bank dialog
 
'''[[API_msgdlgtemplate1|msgdlgtemplate1]]'''(string msg, buttontext, function button_cb, string size, posx, posy, bgcolor) -> userdata dialog :: Create fullscreen dialog with button and message
 
'''[[API_msgdlgtemplate1a|msgdlgtemplate1a]]'''(string msg, size, posx, posy, userdata control, string bgcolor) -> userdata dialog :: Create a dialog and optionally disable input to the background except to the given control.
Note: if a control is given display the dialog with :show_all() if not use [[API_Index#ShowDialog|ShowDialog]] or :show()
 
'''[[API_msgdlgtemplate1aDone|msgdlgtemplate1aDone]]'''(function button_cb, string msg, size, posx, posy, userdata control, string bgcolor) -> userdata dialog :: Same as [[API_Index#msgdlgtemplate1a|msgdlgtemplate1a]] but with a "Close" button
 
'''[[API_msgdlgtemplate1aNext|msgdlgtemplate1aNext]]'''(function button_cb, string msg, size, posx, posy, userdata control, string bgcolor) -> userdata dialog :: Same as [[API_Index#msgdlgtemplate1a|msgdlgtemplate1a]] but with a "Next" button
 
'''[[API_msgdlgtemplate2|msgdlgtemplate2]]'''(string msg, ltitle, function lcb, string rtitle, function rcb, string bgcolor, alignment) -> userdata dialog :: Create a fullscreen dialog with two buttons and a message
 
'''[[API_msgdlgtemplate2withcheck|msgdlgtemplate2withcheck]]'''(string msg, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons, a checkbox and a message
 
'''[[API_msgpromptdlgtemplate2|msgpromptdlgtemplate2]]'''(string msg, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons, an entry field and a message
 
'''[[API_msgpromptdlgtemplate2|msgpromptdlgtemplate2]]'''(string msg, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons, an entry field and a message
 
'''[[API_msgpromptdlgtemplate2lines|msgpromptdlgtemplate2lines]]'''(string msg, msg2, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons, two entry fields and two messages
 
'''[[API_multidlgtemplate2|multidlgtemplate2]]'''(string msg, msg2, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons and two messages (one in a [[iup#multiline|multiline]] control)

Revision as of 00:26, 26 January 2009

Playground for a different index format

General

Functions

AbbrLocationStr(int sectorid) -> string name :: Get abbreviated sector name for sectorid

AbortMission(int itemid) -> nil :: Abort a mission

Article(string word) -> string out :: prepends the appropriate article to the string word

CanUseAddon(int itemid) -> bool ret1, {string l1 ..} :: check if the player can equip the addon itemid

CanUseMerchandise(table iteminfo) -> bool ret1, {string l1 ..} :: check if the player can use the item iteminfo

CancelPurchaseShipLoadout() -> nil :: Interrupt purchase of ship loadout

CheckCharProximity(int dist, charid) -> bool inrange :: Tell if a character at a given distance is within proximity range. The function only returns true once for every character in radar proximity range. Any further checks will return false until the character leaves the range.

CheckProximityWarning() -> nil :: Trigger the PROXIMITY_ALERT event if a character, that hasn't been before, is within proximity range

CheckStorageAndUnloadCargo({{int itemid, int quantity} ..}, function cb) -> nil :: Unload cargo items and quantities according to the provided table also checks station storage and pops up a dialog if not enough available

ClearGeneralChatLog() -> nil :: clears general chat log..

ClearLastShipLoadout() -> nil :: clear last shiploadout. prevents client from asking to rebuy ship after destruction

ClearMissionChatLog() -> nil :: clears mission log..

ClearProximityCache() -> nil  :: Clear list of characters in proximity range. Stops CheckCharProximity and CheckProximityWarning from ignoring them.

ClearStationChatLog() -> nil :: clears station log (bar)..

ConfigureMultipleWeaponGroups({table group1key1, table group1key2 ... table group1key6, table group2key1, table group2key2...}, function cb) -> nil :: configures weapon groups according to given tables.

ConfigureWeaponGroup(int id, table port_ids, function cb) -> nil :: Configures one weapon group

ConnectAddon(int portid, int itemid, function cb) -> bool canconnect :: Attaches the addon itemid to the active ship in port portid

CreateCharacter(int name, int nation) -> nil :: Creates the character of the given nation

DeleteCharacter(int slot) -> nil :: Deletes the character in the character slot slot

DisableProximityWarning() -> nil :: disable the proximity warning ...

DisconnectAddon(int itemid) -> bool ret1 :: detaches the addon itemid and stores it in the station Note: detached items will likely have a different itemid in the station

DisconnectAllAddons() -> nil :: Detach all addons from the active ship and store them in the current station

EnableProximityWarningDisableProximityWarning() -> nil :: enable the proximity warning ...

EnableVoiceChat(bool enable) -> nil :: Toggle Voice chat

FindAndReplaceTags(string text, table matches) -> string ret1 :: Replaces all occurances of with < and > enclosed substrings in text with matching values from the provided table

FindAndReplaceTagsCB(string text, function cb) -> string ret1 :: Pass each occurances of with < and > enclosed substrings in text to cb and replace them with the return value

ForEachBuddy(function func(string name, bool isonline, int sectorid)) -> nil :: calls func with the name, if the player is online for each of your buddies as well as his position if the player is currently online

ForEachPlayer(function func(int charid)) -> nil :: calls func with the character id of each player in the sector. that includes bots and the sector thingy itself This function is called by the toplist when you open it.

ForgiveKiller(bool forgive) -> nil :: Forgive the last killer.

GeneratePlayerDiedMessage(string name1, name2, int weapon) -> string msg :: generate appropiate kill message for the arguments.

GetAccomplishmentBigSize(int type, level) -> string bigsize :: Get size of accomplishment medal

GetAccomplishmentBigTexture(int type, level) -> string tex :: Get texture of accomplishment medal

GetAccomplishmentBigUV(int type, level) -> string uv :: Get uv mapping of accomplishment medal

GetAccomplishmentCategory(int type, level) -> string category :: Get category of accomplishment

GetAccomplishmentDescription(int type, level) -> string desc :: Get description of accomplishment

GetAccomplishmentLevels(int accomid) -> int curlevel int reqlevel :: returns the current and the required level for the selected accomplishment

GetAccomplishmentName(int type, level) -> string name :: Get name of accomplishment

GetAccomplishmentSize(int type, level) -> string size :: Get size of accomplishment badge

GetAccomplishmentTexture(int type, level) -> string tex :: Get texture of accomplishment badge

GetAccomplishmentTitle(int type, level) -> string title :: Get title of accomplishment

GetAccomplishmentType(int accomindex, char) -> int accomplishmenttype int accomplishmentlevel :: returns some numbers..

GetAccomplishmentUV(int type, level) -> string uv :: Get uv mapping of accomplishment badge

GetActiveChatChannel() -> int channel :: returns the active channel

GetActiveMissionInfo(int num) -> string mname table mmsg int itemid :: Get information about the selcted active mission

GetActiveShipCargoCount() -> int cargocount :: returns amount of cargo in the ship

GetActiveShipEnergy() -> float eng fraction :: returns the energy level of the active ship

GetActiveShipHealth() -> int d1 d2 d3 d4 d5 d6 dmg max  :: returns information about the active ships health

GetActiveShipGridPowerAndUsage() -> int power usage :: returns the energy grid power and usage of the current ship..

GetActiveShipID() -> int itemid :: returns itemid of active ship

GetActiveShipItemIDAtPort(int portid) -> int itemid :: returns itemid of addon in selected port

GetActiveShipMass() -> int mass :: returns mass of active ship

GetActiveShipMaxCargo() -> int cargo :: returns amount of cargo space of the active ship in cu

GetActiveShipMaxSpeed() -> int speed :: returns max nonturbo speed of active ship

GetActiveShipName() -> string name :: returns a string with the active ships name

GetActiveShipNumAddonPorts() -> int ports :: returns number of ports in active ship

GetActiveShipPortIDOfItem(int itemid) -> int portid :: returns portid of the given addon in active ship

GetActiveShipPortInfo(int portid) -> table portinfo :: returns information about the given port

GetActiveShipSelectedWeaponGroupIDs() -> int id1 id2 id3 :: returns ids of the selected weapon groups ...

GetActiveShipSpeed() -> int speed :: returns current speed of active ship

GetActiveShipWeaponGroup(int id) -> table group :: return which ports are enabled in the provided group

GetAddonItemInfo(int itemid) -> int current maximum :: Returns current and maximum ammo if itemid is a weapon with ammo, or current/maximum armor if itemid is a ship.

GetAvailableMissionInfo(int midx) -> {int itemtype, string name, bool active, int category, string icon, string desc} :: Returns information about the mission with the given index.

GetBarPatrons() -> {[charid1], [charid2]...} :: get people in the current station bar

GetBestPriceInfoOfItem(int item) -> int price, station :: Get highest sell price of a cargo item in the active ship in the currentsystem

GetBotSightedInfoForSector(int sectorid) -> string botinfo :: returns bot ihnfo text for the given sector

GetBuddyInfo(int char) -> string name, bool isonline, int sectorid :: Get name, online status and location of a buddy

GetCargoValue() -> int value, price :: Get value and buy price of the cargo and equipped addons on the active ship at the current station

GetCharacterDescription() -> string desc :: Get the character description for your and possibly other chars. It just returns an empty string when an argument is passed to it, which suggests that it accepts one or more unknown arguments.

GetCharacterID(int nodeid) -> int charid :: returns character id of the provided node id

GetCharacterIDByName(string name) -> int charid :: get character id by name

GetCharacterInfo(int cslot) -> string name faction int money kills deaths loc home cl ll hl tl ml :: Get information about your characters

GetCharacterKillDeaths(int charid) -> int kills deaths pks :: get info about kills and deaths. returns your own info if no charid given or a lua error if an invalid one ...

GetCurrentSectorid() -> int sectorid :: get current sector id

GetCurrentStationType() -> int type :: return the current station type..

GetCurrentSystemid() -> int systemid :: get current system id..

GetEULA() -> string eula :: return eula

GetFactionInfo(int faction) -> string info :: get faction info text for the provided faction

GetFinishedMissionInfo() -> string name table msg int itemid :: see GetActiveMissionInfo

GetFriendlyStatus(int char) -> int fstatus :: get friendlyness of a character

GetFullPath(int sector, table navroute) -> table fullpath :: Get the full path, including wormhole sectors, from sector along navroute

GetGeneralChatLog() -> table log :: returns the chatlog

GetGroupMemberID(int index) -> int charid :: get charid of group member with given index

GetGroupMemberLocation(int charid) -> int loc :: get location of a groupmember

GetGroupOwnerID() -> int charid :: get charid of group owner

GetGuildAcronym() -> string acronym :: get your guilds acronym

GetGuildBalance() -> int balance :: get amount of money in guild bank

GetGuildBankPrivileges() -> table deposit withdraw logview :: get your guilds bank privileges as three tables. they contain the ranks carrying each privilege. see [API_Index#Guild]

GetGuildBankWithdrawalLimits() -> int ret1 ret2 ret3 :: get withdrawal limits? returns three numbers

GetGuildMOTD() -> string motd :: get your guilds message of the day

GetGuildMemberInfo(int index) -> int charid rank string name  :: get information about the guildmember of the given index

GetGuildMemberInfoByCharID(int charid) -> int charid rank string name  :: get information about the guildmember

GetGuildName() -> string name :: get guild name

GetGuildTag(int charid) -> string tag :: get guild tag of self or another character.

GetHomeStation() -> int sectorid :: get sectorid of home station

GetInventoryItemClassSubType(int itemid) -> int subtype :: get subclass of an item

GetInventoryItemClassType(int itemid) -> int type :: get class of an item

GetInventoryItemContainerID(int itemid) -> int container :: get container of item

GetInventoryItemExtendedDesc(int itemid) -> string desc :: get description of item

GetInventoryItemIcon(int itemid) -> string path :: get path to icon of inventory item

GetInventoryItemInfo(int itemid) -> string ipath name int quant float mass string sdesc desc1 desc2 int container class subtype :: get most info about inventory item

GetInventoryItemLocation(int itemid) -> int stationid :: get location of an inventory item

GetInventoryItemLongDesc(int itemid) -> string desc :: get long description of an inventory item

GetInventoryItemMass(int itemid) -> float mass :: get mass of inventory item

GetInventoryItemName(int itemid) -> string name :: get name of inventory item

GetInventoryItemQuantity(int itemid) -> int quant :: get quantity of inventory item..

GetInventoryItemType(int itemid) -> int type :: get item type

GetInventoryItemUnitCost(int itemid) -> int cost :: get price paid for the given item(?)

GetInventoryItemVolume(int itemid) -> int volume :: get per unit volume of item in cu

GetItemFullDesc(table item) -> string desc :: get full description of an inventory item

GetItemPartialDesc(table item) -> string desc :: get partial description of an inventory item

GetLastAggressor(int itemid) -> int nodeid ret1 :: get node id of last aggressor and some number

GetJoinedChannels() -> table channels :: get array with currently joined channels

GetLastPrivateSpeaker(int itemid) -> string name :: get name of last character that pmed you

GetLastShipLoadout() -> {groups = {1 = group1 .. 18 = group18}, int ship, ports= {1 = port1 ..}, int shipcolor} :: get last ship loadout, color and weapon groups. this function only works in space

GetLastShipLoadoutPurchaseCost() -> int cost :: what you payed for your last ship(?)

GetLicenseLevel(int type) -> int level :: get the level of the provided license

GetLicenseRequirement(int level) -> int xp :: get xp required for given level

GetListOfSeenNames() -> table names :: get table with names of characters that have been in the same sector as the player or have sent messages

GetMaxRadarDistance() -> int dist :: get current(?) max radar range

GetMinJumpDistance() -> int dist :: get minimum distance from large objects to jump

GetMissionChatLog() -> {bool updated, string 1.. } :: get advancement log

GetMissionTimers() -> int time :: get time left on the current mission. may have some functionality for multiple missions

GetMoney() -> int money :: get how many credits you own

GetNationKills(int nation) -> int kills :: get number of player kills for the given nation

GetNewsHeadline(int index) -> string title int time ret1  :: get headline, post time and some number

GetNumAccomplishments(int charid) -> int accomplishments :: get number of accomplishmeants for given character(?). not well tested, may require caching of the char info

GetNumActiveMissions() -> int missions :: get number of active missions.

GetNumAvailableMissions() -> int missions :: get number of available missions

GetNumCharacters() -> int chars :: get number of characters you have defined

GetNumCompletedMissions() -> int missions :: get number of completed missions

GetNumFinishedMissions() -> int missions :: get number of finished missions. as displayed in the mission log panel

GetNumGroupMembersGetNumCharacters() -> int chars :: get number of characters in your group

GetNumGuildMembers() -> int numchars :: get number of online guildmembers

GetNumNewsHeadlines() -> int num :: get number of news headlines..

GetNumStationDesiredItems() -> int num :: Get number of items this station desires. The names of the items can then be fetched with GetStationDesiredItem.

GetNumStationMerch() -> int num :: get number of addons, ships an cargo this station sells

GetNumStationTurrets() -> int num :: get number of turrets on this station or ship

GetNumTips() -> int num :: get size of load screen tips pool

GetParentHealth() -> float ret1 ret2 :: get health of object this one is attached to (turret to capship). untested!

GetPlayerDistance(int charid) -> float distance :: get distance to another character

GetPlayerFaction(int charid) -> int factionid :: get nation of a player

GetPlayerFactionStanding(int factionid, charid) -> int standing :: get a players standing with a faction

GetPlayerHealth(int charid) -> float health :: get health of provided character

GetPlayerName(int charid) -> string name :: get name of character

GetPlayerNodeID(int charid) -> int nodeid :: get nodeid of a character in the sector

GetPrimaryShipIDOfPlayer(int charid) -> int shipid :: get shipid of a character (= objectid?)

GetPrimaryShipNameOfPlayer(int charid) -> string name :: get ship name (type) of provided character

GetProximityWarningDistance() -> int dist :: get proxy warnign distance Note: even returns the distance when proxy warning is disabled

GetSectorAlignment() -> int alignment :: returns the alignment of the current sector

GetSectorMonitoredStatus() -> int monitor :: returns the monitor status of the current sector (Unmonitored, Guarded ...) see: FactionMonitor and FactionMonitorStr

GetShipAmmoPrices(int ship) -> table prices :: get cost of ship ammo

GetShipCargoCount(int itemid) -> int num :: get amount of cargo in the ship

GetShipInventory(int itemid) -> {cargo = {int cargoitemid ..}, addons = {int addonitemid ..}} :: get itemids of items attached to a ship

GetShipList() -> {int itemid ..} :: get list of your ships in the current station. produces error when called outside station..

GetShipMaxCargo(int itemid) -> int cargo :: get amount of cargo the given ship can hold

GetShipMeshInfo(int itemid) -> string id model int color :: get mesh information about equipment in your inventory. if an invalid itemid is given the info about the current ship is returned

GetShipPortIDOfItem(int itemid1, int itemid2) -> int portid :: get port of weapon in one of your ships

GetShipPurchaseColor() -> int color :: get selected color from the color picker

GetSkillLevel(int licenseid) -> int current next :: get current and required xp for next level or provided skill

GetSkirmishInfo() -> int crew1 crew2 init1 init2 string name1 name2 bool active :: returns crew info for skirmish missions

GetStationAddonList() -> {int itemid ..} :: get array with your addons in the station hold

GetStationAmmoInfoByIDGetStationAmmoByID(int itemid) -> {bool is_ammorepair, string type, int unitcost, int price, string longdesc, string desc, bool locallyproduced, int itemid, string icon} :: get info about ammo based weapons in the station by item id

GetStationCargoList() -> {int itemid ..} :: get list of cargo items in the current station. produces error when called outside station..

GetStationChatLog() -> {string msg ..} :: get table with messages in the station chat

GetStationCurrentCargo() -> int cargo :: get amount of cargo currently in this station. including cargo, equipment, ships ..

GetStationDesiredItem(int index) -> string ditem :: Get the string name of an item that this station desires. The index ranges from 1 to GetNumStationDesiredItems().

GetStationFaction(int stationid) -> int factionid :: get faction of the given station

GetStationFactionAppraisalModifier() -> float modifier :: Returns a number that seems to affect the price of storage space. depends on faction standing or something

GetStationLocation() -> int stationid :: get the stationid of the current station

GetStationMaxCargo() -> int cargo :: return amount of cargo this station can hold.

GetStationMerchInfo(int merchid) -> { neededlevels = {int l1 .. l5}, int price, string longdesc, float mass, string sortgroup, int volume, string extendeddesc, string type, string meshfile, bool usable, int itemid, string icon } :: get info about items this station sells

GetStationMerchInfoByID(int itemid) -> { neededlevels = {int l1 .. l5}, int price, string longdesc, float mass, string sortgroup, int volume, string extendeddesc, string type, string meshfile, bool usable, int itemid, string icon } :: get info about items this station sells by itemid

GetStationMerchPriceByIDGetStationMerchInfoByID(int itemid) -> int price :: get price of an item this station sells

GetStationName(int stationid) -> string name :: Get the name of a station. If the provided stationid is invalid the function produces a lua error.

GetStationSellableInventoryInfoByID() -> {bool is_ammorepair, string type, int unitcost, int price, string longdesc, string desc, string name, bool locallyproduced, neededlevels = {string l1 .. l5}, int itemid, string icon } :: get sellable inventory info by id ...

GetStationSellableInventoryPriceByID(int itemid, int quantity) -> int value, unitprice :: Get value of inventory items and price per unit in the current station

GetStationShipList(int itemid) -> {int itemid1 ..} :: get array of your ships in the current station

GetStationTurretInfo(int turretid) -> {int objectid, int nodeid, float armorpercent, int itemid} :: get information about a stations or ships turrets

GetStationType() -> string stype :: get station type

GetStorageItemInfo() -> ?? :: no clue. can't make it return anything

GetStorageLocationSector(int arg1) -> int ret1 :: returns some number when fed with an itemid

GetSurveyChoices() -> {} :: returns an empty table!

GetSurveyQuestion() -> string ret1 :: returns an empty string!

GetSystemID(int sectorid) -> int systemid :: get systemid of the given sector. lua error on nil

GetTargetDistance() -> float dist :: get distance to target

GetTargetFriendlyStatus() -> int fstatus :: get friendlyness of target

GetTargetInfo() -> string name float health dist int factionid string guild ship :: get info about target

GetTip(int tipid) -> string tip :: get loading screen with given index

GetTurretNamesByStationType(string stype) -> {string tur1 ..} :: get turret name of provided station type

GetTutorialLevel() -> int num :: return if the player has done the tutorial(?)

GetUserName() -> string Name :: Returns the username.

GiveMoney(string char, int amount) -> nil :: transfer money to a character

HasActiveShip() -> bool aship :: return true if the player has an active ship

HasLastShipLoadout() -> bool loadout :: return true if the player has a last ship loadout saved. (see ClearLastShipLoadout)

IsConnected() -> bool connected :: return true if the player is connected to the game

IsEnemy(charid) -> bool enemy :: Part of the base radar functionality. Used in conjunction with GetFriendlyStatus.

IsGroupMember(int charid) -> bool grmember :: tell if the provided character is a group member

IsGuildMember(int charid) -> bool guildmember :: tell if the provided character is a guild member

IsInDuel() -> bool duel :: Returns true if the player is in a duel

IsPlayerRequestingBuddy(string name) -> bool req :: Tell if the given player is requesting to become a buddy

IsPlayerRequestingDuel(string name) -> bool req :: Tell if the given player is requesting a duel

IsPlayerRequestingGroupInvite(string name) -> bool req :: Tell if the given player has sent a group invite

IsProximityWarningEnabled() -> bool isproxy :: tell if proximity warning is enabled

IsStormPresent() -> bool isstorm :: tell if there's a storm in the current sector

IsTransactionInProgress() -> bool trans :: tell if a transaction is in progress (like selling a ship, items ..)

IsVoiceChatEnabled() -> bool vc :: tell if voice chat is enabled

JettisonAll() -> nil :: Jettison all of your ships cargo

JettisonMultiple{item1 = {int id, int quantity} ..} -> nil :: Jettison cargo items and quantitiss according to the provided table

JettisonSingle(int itemid, int quantity) -> nil :: Jettison provided type and amount of cargo

JoinChannel{channelid1 ..} -> nil :: join the provided channels without leaving existing channels

LeaveChannel{channelid1 ..} -> nil :: leave the provided channels

ListChannels() -> nil :: print list of currently joined channels and usage info to the chatarea

LoadCargo({{int itemid, int quantity} ..}, function cb) -> nil :: Load cargo items and quantitiss according to the provided table

LoadChannels() -> nil :: restore chat channels from config file(?)

LoadMissionNotes() -> string notes :: read and return players notes from playernotes.txt. See also: Function_Index#SaveMissionNotes

LoadNavpath(string navpath) -> {int sectorid1 ..} :: load navroute by name and return array with hops

LoadShipPresets() -> nil :: read ship presets from config file and setup buyback dialog

LoadSystemNotes(int systemid) -> string notes :: load system notes from settings/<charactername>/system<systemid>notes.txt

LocationStr(int sectorid) -> string sname :: translate a sectorid into a sector name. error if no argument provided

Login(string username, string password) -> nil :: Login to the game. crashes game when arguments are missing...

Logout() -> nil :: Inititate logout sequence.

MakeBotName(string nameset, int seed) -> string name :: Generate a name fromthe given nameset and optional random seed

MakeBuyBackQuestionDlg() -> userdata dialog :: Create the buyback dialog

NPlural(string arg1, string arg2) -> string pstring :: concaterates the two provided strings together and pluralizes the result

MakeBuyBackQuestionDlg() -> userdata dialog :: Create the buyback dialog

OnIdle(float delta) -> nil :: Idle handler

OpenAlarm(string title, text, buttontext) -> nil :: Show ConfirmationDialog with the given message

OverlapPrevention(table ip) -> bool overlap :: Adjust icon positions in a viewport so that they don't overlap

ParseXML(string xmlstring) -> {dom} :: returns the provided string as a collection of substrings and nodes as subtables ..see example

PlayerInStation() -> bool instation :: tell if the player is in a station or capship

PlayerInventoryPairs() -> int itemid table iteminfo :: Iterator function that returns information about an item in the players inventory each time it is called. works like pairs()

PrintJoinUsage() -> nil :: prints how to use /join to the chatarea

PrintLeaveUsage() -> nil :: prints how to use /leave to the chatarea

PrintPurchaseTransaction(string name, int quantity, totalvalue, totalcost) -> nil :: Print a sale summery message to the chat log

PrintTransactionTable() -> nil :: print pending transactions.

ProcessEvent(string eventtype, data) -> nil :: Processes various events. Trigger a with Function_Index#RegisterEvent defined event

PurchaseMerchandiseItem(int itemid, int amount) -> nil :: buy the provided item

PurchaseShipLoadout(func arg1) -> ?? :: no clue takes function as first argument

RegisterEvent({func OnEvent}, string eventtype) -> nil :: hook up object to event. the obect is a table with a method called OnEvent that is called when the event is triggered

RegisterUserCommand(string commandname, func callback(dataarg, {arguments1, ..}), data) -> nil :: hook up object to command

ReinitIconPositions(timer icontimer, int ship, userdata viewport, table iconlist, userdata iconcontainer, table ipcache) -> nil :: Setup icons in a viewport

ReloadInterface() -> nil :: Reloads everything related to the interface that isn't a texture. This means VO lua scripts as well as scripts in the /plugins directory.

RentStorage(int storage) -> nil :: Rent storage space at the current station.

RepairShip() -> ?? :: not tested

ReplenishAll(int itemid, func cb) -> nil :: replenish all weapons on provided ship

ReplenishWeapon() -> ?? :: not tested

RequestCharacterStats() -> nil :: no clue

RequestLaunch() -> bool ret :: Launches from the station. Any issues preventing launch are reported via pop-up window. Otherwise, the player's ship undocks.

RequestMissionDetails(int missionid) -> nil :: Request information about the given mission (aka the info button) and pop up API_Index#MissionPromptDialog if id is valid

RequestMissionList() -> nil :: no clue. maybe used by /updatestation

RequestNewsArticle(int newsindex) -> nil :: ask server for news item(?) fills API_Index#NewsDialog with given news item

RequestNewsHeadlines() -> nil :: ask server for news item list?

RequestTargetStats() -> int charid :: get character id of target (considreing the name maybe more?)

ResetTutorial() -> nil :: Reset the tutorial flag. the player will have to go through it again after docking.

RunTutorial() -> nil :: launch tutorial

SaveChannels() -> nil :: Save joined channels(?). Kinda useless since trhat's done as soon as you join one

SaveMissionNotes(string notes) -> nil :: Save the provided string to the characters mission notes file. See also: API Index#LoadMissionNotes

SaveShipPresets(int index) -> nil :: Save ship preset(s) and recreate buyback dialog

SaveSystemNotes(string notes, int systemid) -> nil :: save system notes to settings/<charactername>/system<systemid>notes.txt

SaveNavpath({int sectorid1 ..}, string name) -> nil :: Save the provided navroute

SaveShipLoadout() -> ?? :: save shiploadout? after a ClearLastShipLoadout() this function causes the buy back dialog to pop up again but the ship won't be rebought.. maybe it needs a loadout as arg

SectorIDFromLocationStr(string location) -> int sectorid :: Convert a location string into a sectorid.

SelectActiveShip(int itemid) -> nil :: Set the given ship active

SelectCharacter(int charslot) -> nil :: Select characteri in given slot and enter the game with it (only "works" when you haven'T one selected yet)

SellInventoryItem(int itemid, int amount) -> nil :: Sell the provided amount of an inventory item from the current station or ship when docked to a station

SendChat(string msg, string dst, string dstparam) -> nil :: Send a message to the provided destination.

SendMissionQuestionResponse(int num) -> nil :: called by the initial info dialog 1 = accept, 0 = decline

SetChatLogRead() -> nil :: Mark the general chat log as read/displayed

SetChatLogReceiver(table chatcontainer) -> nil :: Point the general chat log to a chat container

SetCurrentChatTab() -> ?? :: does nothing. maybe a leftover from the general/mission chat system

SetHomeStation() -> nil :: set current station as your home station

SetMissionLogRead() -> nil :: Mark the advancement log as read/displayed

SetMissionLogReceiver(table chatcontainer) -> nil :: Point the advancement log to a chat container

SetProximityWarningDistance(int dist) -> nil :: set proximity warning distance ..

SetShipPurchaseColor(int color) -> nil :: color of the next ship the player will buy

SetStationLogRead() -> nil :: Mark the station log as read/displayed

SetStationLogReceiver(table chatcontainer) -> nil :: Point the station log to a chat container

SetViewObject(userdata modelview, string meshname, string meshfile, int color) -> nil :: Change the ship in a modelview

SHA1(string text) -> string hash :: generate SHA1 hash of the given string

ShortLocationStr(int sectorid) -> string loc :: string representing the provided sector

ShouldTutorialRun() -> bool tut :: tell if the player has done the tutorial

SplitSectorID(int sectorid) -> int systemid sectorh sectorv  :: split up a sectorid into systemid and axis on the system grid

SplitStationID(int stationid) -> int systemidl sectorhv :: split up a stationid into systemid -1 and sector in system. this may be totally wrong

StartSellInventoryItem(int itemid, function cb) -> nil :: Receive instant price updates for the given item.

StationPlayerAmmoPairs() -> int itemid table ammoinfo :: Iterator function that prints information about ammo based weapons in the players inventory at the current station each time it is called. works like pairs()

StationSellableInventoryPairs() -> int itemid table iteminfo :: Iterator function that prints information about an item in the players inventory at the current station each time it is called. works like pairs()

StationSellItem(userdata button, table item, int quantity, function cb) -> nil :: Sell items with aconfirmation dialog

StrTableStopTutorial() -> nil :: seems to be another serialisation function. similar (the same?) to splickle

SubmitSurvey() -> nil :: does nothing..

SwapAddons(int portid1 itemid1 porid1 itemid2 function cb) -> nil :: Swap two addons equipped to the current ship (crashes client after undocking)

TabCompleteName(string name) -> string completename :: Attempts to fill out name with the best match the client has seen since startup. If TabCompleteName cannot find a match for name it returns nil, otherwise, completename will be a string containing the best match.

UnloadCargo({{int itemid, int quantity} ..}, function cb) -> nil :: Unload cargo items and quantities according to the provided table

UnloadSellCargo({{int itemid, int quantity} ..}, function cb) -> nil :: Unload and sell cargo items and quantities according to the provided table

UnregisterEvent({func OnEvent}, string eventtype) -> nil :: Unregister an event registered with Function_Index#RegisterEvent

UnregisterUserCommand(string command) -> nil :: Unregister a command registered with RegisterUserCommand

UnrentStorage(int storage) -> nil :: Unrent storage space at the current station.

XMLTagToString() -> nil :: might the reverse of ParseXML

_ERRORMESSAGE(string msg) -> nil :: creates an error message with the provided string. probably more

assert :: [1]

bbhash(string input, int arg2) -> string hash :: Seems to be some kind of hash function

calc_health_color(float health, int alpha, mode) -> string color :: Create an iup color string corresponding to the given health

clearscene() -> nil :: removes al objects from the game world

collectgarbage :: [2]

comma_value(float number) -> string formatted_number :: returns a formatted version of the provided number according to API_Index#SI_unit

console_clear() -> nil :: clear console on the next API_Index#ReloadInterface

console_print(string text) -> nil :: print the given string to the ingame console

debugprint() -> ?? :: does nothing..

declare(string name, value) -> nil :: declare a variable and assign a value

deviceByMode(table arg1, mode) -> table ret :: not sure. possibly to find audio devices by capability

dofile :: [3]

error :: [4]

factionfriendlyness(int standing) -> string name :: get string that represents the given faction standing

factionfriendlynesscolor(int standing) -> string color :: get iup color that represents that given faction standing

factionfriendlynessrange(int standing) -> float range :: get progress within the current faction standing level

fillModesDropdown() -> ? :: no clue. fill some kind of drop down menu(?)

filter_colorcodes(string in) -> string out :: strips colorcodes from the provided string

format_time(int msecs) -> string tstring :: get string representation of the provided time

generalprint(string str) -> nil :: print given string to the chat area via CHAT_MSG_PRINT event. Results is printed in the active channel text color.

hextorgb(string hexcolors) -> string deccolors :: Convert hexadecimal formated color string into a decimal one used by iup

ipairs :: [5]

load :: [6]

loadfile :: [7]

loadscene(string scene) -> ?? :: load a scene(?). don't know how it works though

loadstring :: [8]

log_chat(string str) -> nil :: Writes current time and given string to the errors.log

log_print(string str) -> nil :: Writes string to the errors.log

next :: [9]

oper :: not gonna bother

pairs :: [10]

pcall :: [11]

print(string str) -> nil :: print given string to the chat area

printtable{in} -> nil :: print contents of a table to the console

purchaseprint(string str) -> nil :: print given string to the chat area via CHAT_MSG_CONFIRMATION event. Results in white text by default. Same as when buying or selling things.

rawequal :: [12]

rawget :: [13]

rawset :: [14]

rgbtohex(string deccolor) -> string hexcolor :: Returns string containing escaped hexadecimal version of the in decimal given color

roper :: not gonna bother

sectorprint(string str) -> nil :: print given string to the chat area via CHAT_MSG_SERVER_SECTOR event. Results in white text by default.

select :: [15]

spickle(table intab) -> string :: Converts a table into a string roughly of the format "value","value",{"tablevalue","tablevalue";tablekey="value"};key="value",key="value"

strip_whitespace(string in) -> string out  :: strip whitespace from beginning and end of string

substitute_vars(string in) -> string out  :: replace variables like %target% in input with their corresponding value

tabcomplete :: produces lua error..

tonumber :: [16]

tostring :: [17]

type :: [18]

unpack :: [19]

undeclare(string name) -> nil :: undeclare a variable created with Function_Index#declare

unspickle(string in) -> table outtab :: Converts a spickled string into a table


Tables

Bitlib

functions to manipulate the bitwise operations

Interface

Functions

AccomplishmentTemplate(function cb(string desc)) -> userdate box :: Create box with accomplishment icons (targetinfo dialog). see: AccomplishmentTemplate

AccomplishmentTemplate2(function cb(string desc, int type, level)) -> userdate box :: Create list with accomplishment icons (pda playerinfo dialog). see: AccomplishmentTemplate

ChatLogTemplate(string bg, string scrolledbg, function updatecb, string editbg, bool clickable) -> table container :: Create rudimentary chet container. See ChatLogTemplate

CreateBig3DViewMenu() -> userdata dialog :: Create Big3DViewDialog a Big3DViewDialog

CreateCancelLoadoutMenu() -> userdata dialog :: Create fullscreen dialog with button and message. See MessageDialog

CreateCapShipChatTab() -> userdata box :: Create box with "Ship Com" tab. See ChatLogTemplate

CreateCapShipFactionInfo() -> userdata box ::

CreateCapShipPDATab() -> userdata box ::

CreateCapShipRepairTab() -> userdata box ::

CreateCapShipTacticalTab() -> userdata box ::

CreateCapShipTurretTab() -> userdata box, button :: Create CapShipTurretTab and the select button

CreateCharCreateFailedMenu() -> userdata dialog :: Create fullscreen dialog with button and message. See MessageDialog The created variant pops up CharCreateDialog after clicking the button

CreateCharCreateMenu() -> userdata dialog ::

CreateCharSelectFailedMenu() -> userdata dialog :: Create fullscreen dialog with button and message. See MessageDialog The created variant pops up CharSelectDialog after clicking the button

CreateCharSelectMenu() -> userdata dialog ::

CreateCharacterPDATab() -> userdata box, tab1, tab2, tab3 ::

CreateCommPDATab() -> userdata box ::

CreateConnectingMenu() -> userdata dialog :: Create fullscreen dialog with button and message. See MessageDialog The created variant logs out after clicking the button

CreateCreditsDialog(userdata parent) -> userdata dialog :: Create credits dialog

CreateEULAMenu() -> userdata dialog ::

CreateInvalidAmountMenu() -> userdata dialog :: Create fullscreen dialog with button and message. See msgdlgtemplate1

CreateInventoryPDATab() -> userdata dialog, tab1, tab2 ::

CreateKilledByPDATab() -> userdata box ::

CreateKilledPDATab() -> userdata box ::

CreateLoadingMenu() -> userdata dialog ::

CreateLoginDialog() -> userdata dialog ::

CreateLoginHelpDialog(userdata parent) -> userdata dialog :: Create fullscreen dialog with help text for the login screen and a close button

CreateLowGridPowerDialog() -> userdata dialog :: Create fullscreen dialog with low grid power error

CreateMissionAbortMenu() -> userdata dialog ::

CreateMissionPromptMenu() -> userdata dialog ::

CreateMissionsPDATab() -> userdata box, tab1, tab2, tab3, tab4, infobutton ::

CreateNavigationPDATab() -> userdata box ::

CreateNearbyShipsPDATab() -> userdata box ::

CreateNewsMenu() -> userdata dialog ::

CreateNotEnoughStorageMenu() -> userdata dialog :: Create fullscreen dialog with button and message. See msgdlgtemplate1

CreateNotificationMenu() -> userdata dialog ::

CreateOptionsMenu() -> userdata dialog ::

CreatePDA() -> userdata dialog ::

CreatePDATab1() -> userdata box ::

CreatePVPTab() -> userdata box ::

CreateQuantityPurchaseMenu() -> userdata dialog ::

CreateSensorPDATab() -> userdata box, tab1, tab2, tab3, tab4, tab5 ::

CreateShipCargoPDATab() -> userdata box ::

CreateShipPDATab() -> userdata box, tab1 ::

CreateStation() -> userdata dialog ::

CreateStationBlankTab() -> userdata box ::

CreateStationChatTab() -> userdata box ::

CreateStationCommerceTab() -> userdata box ::

CreateStationCommoditiesBuyTab() -> userdata box ::

CreateStationCommoditiesLoadTab() -> userdata box ::

CreateStationCommoditiesSellTab() -> userdata box ::

CreateStationCommoditiesTab() -> userdata box ::

CreateStationEquipmentBuyTab() -> userdata box ::

CreateStationEquipmentManageTab() -> userdata box ::

CreateStationEquipmentSellTab() -> userdata box :: Unused. Creates old equipment sell tab.

CreateStationEquipmentTab() -> userdata box ::

CreateStationFactionInfo() -> userdata dialog :: Create StationFactionInfo

CreateStationHelpMenu() -> userdata dialog ::

CreateStationMissionBuyTab() -> userdata box, button ::

CreateStationPDATab() -> userdata box ::

CreateStationPortConfigTab() -> userdata box ::

CreateStationShipPurchaseTab() -> userdata box, button ::

CreateStationShipSelectionTab() -> userdata box ::

CreateStationShipStatusTab() -> userdata box :: Unused. Creates old ship status tab.

CreateStationVisitsPDATab() -> userdata box ::

CreateStationWelcomeTab() -> userdata box ::

CreateStorageRentalDialog() -> userdata dialog :: Create storage rental dialog

CreateSurveyMenu() -> userdata dialog ::

CreateTargetInfo() -> userdata box ::

CreateVoiceChatOptions() -> userdata dialog :: Create Voicechat options dialog

FactionStandingTemplate(function cb, frame, filler, string expand) -> userdata container :: Creates a container with a list of faction standings of a character. Details: FactionStandingTemplate

FactionStandingWithInfoTemplate() -> userdata container :: Wrapper around FactionStandingTemplate that adds faction descriptions to the list.

FadeControl(userdata control, int timetofade, float startalpha, endalpha, function cb, ...) -> nil :: Fade an iup control by modifying its alpha field. Usually a label.

FadeLookup(userdata control) -> table fi :: Get a fade info table of a control that is currently being faded.

FadeStop(userdata control) -> nil :: Stop fading a control

FillInObjectInfo(string name, desc) -> nil :: Put given name and description into the character info dialog

FillInPlayerInfo(int charid) -> nil :: Fill character info dialog with info of given character

GetChatLogReadState() -> bool read :: Tell if the general chat log was displayed. SetChatLogRead was called since the last line was added to the log.

GetCurrentChatTab() -> int tab :: Unused. Get The current chat tab (general chat or mission chat)

GetMissionLogReadStateGetMissiontLogReadState() -> bool read :: Tell if the mission chat/advanmcement log was displayed. SetMissionLogRead was called since the last line was added to the log.

GetProfitColor(int price, cost) -> string color :: get color depending on the given prices

GetProfitHexColor(int price, cost) -> string color :: get color in hex format depending on the given prices

GetStationLogReadState() -> bool read :: Tell if the stationlog/bar was displayed. SetStationLogRead was called since the last line was added to the log.

HelpCharAccom :: helpfunc

HelpCharFaction :: helpfunc

HelpCharGuild :: helpfunc

HelpCharInventory :: helpfunc

HelpCharStats :: helpfunc

HelpCommoditiesAction :: helpfunc

HelpGridPower :: helpfunc

HelpIgnore :: helpfunc

HelpLargeAddonsAction :: helpfunc

HelpOtherAddonsAction :: helpfunc

HelpPDAAdvancementLog :: helpfunc

HelpPDAJettison :: helpfunc

HelpPDAKilledByList :: helpfunc

HelpPDAKilledList :: helpfunc

HelpPDAMissionLog :: helpfunc

HelpPDAMissionNotes :: helpfunc

HelpPDANearbyShips :: helpfunc

HelpPDAPVPList :: helpfunc

HelpPDAStationVisitsList :: helpfunc

HelpSellAction :: helpfunc

HelpSellAddons :: helpfunc

HelpSellCommodities :: helpfunc

HelpShipAmmo :: helpfunc

HelpShipCargo :: helpfunc

HelpShipEquip :: helpfunc

HelpShipGroup :: helpfunc

HelpShipPurchase :: helpfunc

HelpShipSelect :: helpfunc

HelpShipStatus :: helpfunc

HelpSmallAddonsAction :: helpfunc

HelpStationAddonEquip :: helpfunc

HelpStationAddonGroups :: helpfunc

HelpStationBuddies :: helpfunc

HelpStationMission :: helpfunc

HelpStationNav :: helpfunc

HelpStationNews :: helpfunc

HelpStationWelcome :: helpfunc

HelpSystemNotes :: helpfunc

HelpVoiceChat :: helpfunc

HideAllDialogs() -> nil :: Hide all dialogs that were shown with ShowDialog or PopupDialog

HideDialog(userdata dialog) -> nil :: Hide a dialog that was shown with ShowDialog or PopupDialog

HideTooltip() -> nil :: Hide ToolTip, the tooltip dialog

PopupDialog(userdata dialog, int x, y) -> nil :: Wrapper around iup.Popup that allows the dialog to be closed with HideDialog or HideAllDialogs

ShowDialog(userdata dialog, int x, y) -> nil :: Wrapper around iup.Show that allows the dialog to be closed with HideDialog or HideAllDialogs

ShowTooltip(int x, y, string text) -> nil :: Show the ToolTip the tooltip dialog with the given text

StopTutorial() -> nil :: does nothing..

TutorialEnd() -> nil :: finish up the tutorial

TutorialPart1() -> nil :: Launch a tutorial segment

TutorialPart2() -> nil :: Launch a tutorial segment

TutorialPart3() -> nil :: Launch a tutorial segment

TutorialPart4() -> nil :: Launch a tutorial segment

TutorialPart5() -> nil :: Launch a tutorial segment

TutorialPart6() -> nil :: Launch a tutorial segment

TutorialPart7() -> nil :: Launch a tutorial segment

TutorialPart8() -> nil :: Launch a tutorial segment

TutorialPart9() -> nil :: Launch a tutorial segment

TutorialPart10() -> nil :: Launch a tutorial segment

TutorialPart11() -> nil :: Launch a tutorial segment

TutorialPart12() -> nil :: Launch a tutorial segment

TutorialPart13() -> nil :: Launch a tutorial segment

UpdateFade(float delta) -> nil :: Do a fade step on controls registered with FadeControl

chatareatemplate(string statontabname, bool expanded) -> table container :: create old style chatarea that combines general, mission and station log. the container seems to be incompatible with the chatareatemplate2 based maximized chat containers which breaks the maximize button

chatareatemplate2(bool maximized) -> userdata box :: create a chatarea control. wrapper around ChatLogTemplate

clear_accomlistbox(userdata control, table itemlist) -> int selection :: Clear an accomplishment list control. See: AccomplishmentTemplate

clear_listbox(userdata control, table itemlist) -> int selection :: Clear a list control

create_char_guild_tab(bool sub) -> userdata box :: Create guild tab

create_char_inventory_tabcreate_char_guild_tab(bool expand_local_branches, show_prices, showsellbutton) -> userdata box, tree :: Create inventory tab

create_jettison_tab() -> userdata box ::

create_ship_group_template(table iconlist, bool sub) -> userdata box :: Create weapon groups tab

factioncontroltemplate3(userdata frame, function cb, float font) -> userdata container :: Create a fancy progressbar/faction standing indicator

fill_accomlistbox(userdata control, table itemlist, function setup_cb, click_cb) -> table dialoglist :: fill an accomplishement listbox with accomlistsubdialogs according to given values. normally called from AccomplishmentTemplate2

fill_listbox(userdata control, table itemlist, int curselindex, function setup_cb, bool show_quantity, show_price) -> table dialoglist :: fill a listbox with listsubdialogs according to given values

get_itemdlg(bool showquantity, showprice) -> table dialog :: Get a new listsubdialog or recycle one from the cache

get_jettisonitemdlg(int itemid) -> userdata dialog :: Get a new jettisonlistsubdialog or recycle one from the cache

getheight(userdata control) -> int height :: Get height of an iup control

getwidth(userdata control) -> int width :: Get width of an iup control

guildaccessdialogtemplate() -> userdata dialog :: create guild access dialog

guildactivitylogdialogtemplate() -> userdata dialog :: create guild activity dialog

guildbanklogdialogtemplate() -> userdata dialog :: create guild bank dialog

msgdlgtemplate1(string msg, buttontext, function button_cb, string size, posx, posy, bgcolor) -> userdata dialog :: Create fullscreen dialog with button and message

msgdlgtemplate1a(string msg, size, posx, posy, userdata control, string bgcolor) -> userdata dialog :: Create a dialog and optionally disable input to the background except to the given control. Note: if a control is given display the dialog with :show_all() if not use ShowDialog or :show()

msgdlgtemplate1aDone(function button_cb, string msg, size, posx, posy, userdata control, string bgcolor) -> userdata dialog :: Same as msgdlgtemplate1a but with a "Close" button

msgdlgtemplate1aNext(function button_cb, string msg, size, posx, posy, userdata control, string bgcolor) -> userdata dialog :: Same as msgdlgtemplate1a but with a "Next" button

msgdlgtemplate2(string msg, ltitle, function lcb, string rtitle, function rcb, string bgcolor, alignment) -> userdata dialog :: Create a fullscreen dialog with two buttons and a message

msgdlgtemplate2withcheck(string msg, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons, a checkbox and a message

msgpromptdlgtemplate2(string msg, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons, an entry field and a message

msgpromptdlgtemplate2(string msg, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons, an entry field and a message

msgpromptdlgtemplate2lines(string msg, msg2, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons, two entry fields and two messages

multidlgtemplate2(string msg, msg2, ltitle, function lcb, string rtitle, function rcb) -> userdata dialog :: Create a fullscreen dialog with two buttons and two messages (one in a multiline control)