SCUI_Client_SetSimpleMoneyFormat()

Sets the money format to use in the UI.

Synopsis:

#include <scoreloop/scui_client.h>
 
SC_Error_t SCUI_Client_SetSimpleMoneyFormat(SCUI_Client_h self, const char *formatString)

Arguments:

self

An opaque handle for the current SCUI_Client instance.

formatString

An UTF-8 encoded format string conforming to the printf specification. The value will be copied internally.

Library:

libscoreloopcore

Description:

Use this configuration method to set a simple format string to be used for the display of money in the UI. E.g. the stake of a challenge will be formatted by this string. The format string has to conform to the standard printf specification with the money provided as a float value (f). The float value is derived from the money amount by dividing it by 100 - e.g. amount = 150 -> float-value = 1.5. With this simple money format, no formatting dependent on the cardinality is possible - you might thus want to use a string like this: "%.2f Coin(s)".

If no format is specified explicitly, money will formatted as the number of amount (e.g. 150).

Returns:

SC_Error_t A return code (SC_OK indicates success, any other value indicates an error).

Last modified: 2013-12-21

comments powered by Disqus