Abstract, can be called to fill up some kind of combobox.
Abstract, can be called to fill up some kind of combobox.
1 guiElementInstance combobox
the combobox to fill.
-- taken from game/logic_pieces/mmo_subscriptions_logic_piece.lua function logicPiece:fillInteractionComboBox(comboBox) if not self.finished then local theirObj = comboBox:getObject() local option = comboBox:addOption(0, 0, 0, 24, _T("CHANGE_SUBSCRIPTION_FEE", "Change subscription fee"), "pix20", logicPiece.changeFeeCallback) option.logicPiece = self option.theirObj = theirObj if self.evaluationsRemaining > 0 then comboBox:addOption(0, 0, 0, 24, _T("START_FEEDBACK_ANALYSIS", "Start feedback analysis"), "pix20", logicPiece.feedbackAnalysisCallback).logicPiece = self end serverRenting:addMenuOption(comboBox, "pix20") if not self.shutdownAnnounced then comboBox:addOption(0, 0, 0, 24, _T("ANNOUNCE_SERVER_SHUTDOWN", "Announce server shutdown..."), "pix20", logicPiece.announceShutdownCallback).logicPiece = self end comboBox:addOption(0, 0, 0, 24, _T("SHUTDOWN_SERVERS", "Shutdown servers..."), "pix20", logicPiece.shutdownServersCallback).logicPiece = self end end