float NDScriptGameData::GetRoleTaskFloatData(unsigned int nKey, int nId, unsigned short index) { return GetFloatData(eScriptDataRole, nKey, eRoleDataTask, nId, index); }
void TestFloatTable::HandleMouseDown ( const JPoint& pt, const JXMouseButton button, const JSize clickCount, const JXButtonStates& buttonStates, const JXKeyModifiers& modifiers ) { JPoint cell; if (button > kJXRightButton) { ScrollForWheel(button, modifiers); return; } else if (!GetCell(pt, &cell)) { return; } JFloatTableData* data = GetFloatData(); if (button == kJXMiddleButton) { BeginEditing(cell); } // row manipulations else if (button == kJXLeftButton && itsMouseAction == kInsertRow) { data->InsertRows(cell.y, 1); } else if (button == kJXRightButton && itsMouseAction == kInsertRow) { data->InsertRows(cell.y+1, 1); } else if (button == kJXLeftButton && itsMouseAction == kDuplicateRow) { data->DuplicateRow(cell.y, cell.y); } else if (button == kJXRightButton && itsMouseAction == kDuplicateRow) { data->DuplicateRow(cell.y, cell.y+1); } else if (button == kJXLeftButton && itsMouseAction == kMoveRow && cell.y > 1) { data->MoveRow(cell.y, cell.y-1); } else if (button == kJXRightButton && itsMouseAction == kMoveRow && ((JIndex) cell.y) < GetRowCount()) { data->MoveRow(cell.y, cell.y+1); } else if (itsMouseAction == kRemoveRow) { data->RemoveRow(cell.y); } // column manipulations else if (button == kJXLeftButton && itsMouseAction == kInsertCol) { data->InsertCols(cell.x, 1); } else if (button == kJXRightButton && itsMouseAction == kInsertCol) { data->InsertCols(cell.x+1, 1); } else if (button == kJXLeftButton && itsMouseAction == kDuplicateCol) { data->DuplicateCol(cell.x, cell.x); } else if (button == kJXRightButton && itsMouseAction == kDuplicateCol) { data->DuplicateCol(cell.x, cell.x+1); } else if (button == kJXLeftButton && itsMouseAction == kMoveCol && cell.x > 1) { data->MoveCol(cell.x, cell.x-1); } else if (button == kJXRightButton && itsMouseAction == kMoveCol && ((JIndex) cell.x) < GetColCount()) { data->MoveCol(cell.x, cell.x+1); } else if (itsMouseAction == kRemoveCol) { data->RemoveCol(cell.x); } }
float NDScriptGameData::GetRoleBasicFloatData(unsigned int nKey, unsigned short index) { return GetFloatData(eScriptDataRole, nKey, eRoleDataBasic, 0, index); }