Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

Classes

developer »

gameProject »

pedestrianController »

playerPlatform »

punishment »

team »

Concepts

Libraries

Objects

fillInteractionComboBox

Description

Abstract, can be called to fill up some kind of combobox.

Arguments

1 guiElementInstance combobox

the combobox to fill.

Example

-- 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