Ejemplo n.º 1
0
/**
 *
 *  rct2: 0x0068E185
 */
static void window_clear_scenery_mouseup(rct_window *w, rct_widgetindex widgetIndex)
{
    switch (widgetIndex) {
    case WIDX_CLOSE:
        window_close(w);
        break;
    case WIDX_PREVIEW:
        window_clear_scenery_inputsize(w);
        break;
    case WIDX_SMALL_SCENERY:
        gClearSmallScenery ^= 1;
        window_invalidate(w);
        break;
    case WIDX_LARGE_SCENERY:
        gClearLargeScenery ^= 1;
        window_invalidate(w);
        break;
    case WIDX_FOOTPATH:
        gClearFootpath ^= 1;
        window_invalidate(w);
        break;
    }
}
Ejemplo n.º 2
0
/**
 *
 *  rct2: 0x0068E185
 */
static void window_clear_scenery_mouseup(rct_window *w, rct_widgetindex widgetIndex)
{
	switch (widgetIndex) {
	case WIDX_CLOSE:
		window_close(w);
		break;
	case WIDX_DECREMENT:
		// Decrement land tool size, if it stays within the limit
		gLandToolSize = max(MINIMUM_TOOL_SIZE, gLandToolSize - 1);

		// Invalidate the window
		window_invalidate(w);
		break;
	case WIDX_INCREMENT:
		// Increment land tool size, if it stays within the limit
		gLandToolSize = min(MAXIMUM_TOOL_SIZE, gLandToolSize + 1);

		// Invalidate the window
		window_invalidate(w);
		break;
	case WIDX_PREVIEW:
		window_clear_scenery_inputsize(w);
		break;
	case WIDX_SMALL_SCENERY:
		gClearSmallScenery ^= 1;
		window_invalidate(w);
		break;
	case WIDX_LARGE_SCENERY:
		gClearLargeScenery ^= 1;
		window_invalidate(w);
		break;
	case WIDX_FOOTPATH:
		gClearFootpath ^= 1;
		window_invalidate(w);
		break;
	}
}