dos s0008 resultVals - cwtickle/danoniplus-docs GitHub Wiki

English | Japanese

^ Return to Common setting file specification

< Play screen control | Results data | Label text and message >

Results data

g_presetObj.resultFormat - Result data format settings

-> Priority chart settings if specified : resultFormat

  • This function changes the format of result data (data for pasting on Twitter). See resultFormat for usage. Custom variables can be defined in g_presetObj.resultVals.
g_presetObj.resultFormat = `【#danoni[hashTag]】[musicTitle]([keyLabel]) /[maker] /Rank:[rank]/Score:[score]/Playstyle:[playStyle]/[arrowJdg]/[frzJdg]/[maxCombo] [url]`;

g_presetObj.resultVals - Custom group of variables for results data

-> Priority chart settings if specified : None

  • If you define a property name (left side), you can use the format [property name] on the result format.
    The value defined on the right side must be defined using custom js under g_resultObj.
  • For instance, in the following case, if you specify [exScore] on the result format, it will actually be replaced by g_resultObj.exScores.
g_presetObj.resultVals = {
	exScore: `exScores`,
};
  • Definitions on customJs files
g_resultObj.exScores = 300;  // [exScore] is replaced by `300

g_presetObj.resultValsView - Custom variable image display settings for result data

-> Priority chart settings if specified : resultValsView

  • Specify custom variables to be displayed in the result image, in array format, from the entries in g_presetObj.resultVals.
g_presetObj.resultValsView = [`exScore`, `extra`];

Changelog

Version Change details
v33.3.0 - Added custom variable image display settings for results data
v26.3.1 << Variable name change >> - g_presetResultFormat -> g_presetObj.resultFormat - g_presetResultVals -> g_presetObj.resultVals
v16.2.1 - Result data format settings (g_presetResultFormat, g_presetResultVals) are implemented.

< Play screen control | Results data | Label text and message >